|
Go to the documentation of this file. 1 #ifndef NPSTAT_SMOOTHGOFTEST1D_HH_
2 #define NPSTAT_SMOOTHGOFTEST1D_HH_
24 typedef Poly poly_type;
36 const unsigned maxdeg,
37 const unsigned char* mask=0,
38 const unsigned lenMask=0)
40 poly_(poly.clone()), aveBuf_(maxdeg+1U) {}
44 const std::vector<int>& mask)
46 poly_(poly.clone()), aveBuf_(mask.size()+1U) {}
50 poly_(r.poly_->clone()), aveBuf_(r.aveBuf_) {}
56 AbsSmoothGOFTest1D::operator=(r);
58 delete poly_; poly_ = 0;
59 poly_ = r.poly_->clone();
66 inline virtual std::string shortName() const
67 { return testNameWithMask( "S");}
70 const double* data, unsigned long sz,
72 double* deviations, unsigned lenDeviations) const;
75 const float* data, unsigned long sz,
77 double* deviations, unsigned lenDeviations) const;
80 template< typename Numeric>
81 unsigned normalizedDeviationsHelper(
82 const Numeric* data, unsigned long lenData,
83 double* deviations) const;
86 mutable std::vector<double> aveBuf_;
90 #include "npstat/stat/SmoothGOFTest1D.icc"
Base class for smooth tests for goodness-of-fit.
Definition: AbsSmoothGOFTest1D.hh:20
Definition: SmoothGOFTest1D.hh:22
virtual unsigned normalizedDeviations(const double *data, unsigned long sz, bool isDataSorted, double *deviations, unsigned lenDeviations) const
Definition: AbsArrayProjector.hh:14
Definition: AbsDistribution1D.hh:31
|