|
Go to the documentation of this file. 1 #ifndef NPSTAT_NEYMANOSDE1D_HH_
2 #define NPSTAT_NEYMANOSDE1D_HH_
24 template< typename Numeric>
25 NeymanOSDE1D( const Numeric* coords, unsigned long lenCoords,
26 double xmin, double xmax);
28 inline double xmin() const { return xmin_;}
29 inline double xmax() const { return xmax_;}
30 inline unsigned long sampleSize() const { return nCoords_;}
31 inline double coord( unsigned long i) const
32 { return scale_*coords_.at(i) + shift_;}
55 double chiSquare( const double* coeffs, unsigned nCoeffs,
56 const double* shrinkages, unsigned nShrinkages,
57 double* polyStatistics,
64 const double* coeffs, unsigned nCoeffs,
65 unsigned nShrinkages) const;
70 void sampleCoeffs( double* coeffs, unsigned maxdeg) const;
77 unsigned nCoeffs) const;
82 inline bool isPositive( const double* coeffs,
83 const unsigned nCoeffs) const
84 { return densityEstimate(coeffs, nCoeffs).isPositive();}
87 void moveCoordsToStandardInterval();
88 void fillIntegralTable( unsigned maxdeg) const;
89 void fillDerivativeTables( unsigned maxdeg) const;
92 double cdf( const double* coeffs, unsigned ncoeffs,
93 unsigned long ipt) const;
96 std::vector<double> coords_;
97 unsigned long nCoords_;
108 mutable std::vector<double> integs_;
109 mutable unsigned currentMaxDeg_;
113 mutable std::vector<std::vector<double> > firstDeriv_;
117 mutable std::vector<std::vector<double> > secondDeriv_;
121 #include "npstat/stat/NeymanOSDE1D.icc"
Statistical distribution constructed using orthonormal Legendre polynomial series.
Definition: LegendreDistro1D.hh:26
Definition: NeymanOSDE1D.hh:22
Definition: AbsArrayProjector.hh:14
|