33 double computeP(ScalarType x)
const override;
34 double computePfromZero(ScalarType x)
const override;
35 double computeP(ScalarType x1, ScalarType x2)
const override;
37 unsigned numberOfClasses,
38 int* histo =
nullptr)
override;
39 const char*
getName()
const override {
return "Gauss"; }
46 bool getParameters(ScalarType& _mu, ScalarType& _sigma2)
const;
53 bool setParameters(ScalarType _mu, ScalarType _sigma2);
56 inline ScalarType
getMu()
const {
return m_mu; }
59 inline ScalarType
getSigma2()
const {
return m_sigma2; }
75 bool computeRobustParameters(
const ScalarContainer& values,
double nSigma);
83 virtual bool setChi2ClassesPositions(
unsigned numberOfClasses);
A generic class to handle a probability distribution.
std::vector< ScalarType > ScalarContainer
Scalar values container.
The Normal/Gaussian statistical distribution.
double m_qFactor
Exponential quotient.
const char * getName() const override
Returns distribution name.
double m_normFactor
Normalization factor.
ScalarType getSigma2() const
Returns the distribution variance.
std::vector< ScalarType > m_chi2ClassesPositions
Chi2 classes limits.
std::vector< ScalarType > m_Pi
Structure used during the Chi2 distance computation.
ScalarType getMu() const
Returns the distribution mean.
ScalarType m_sigma2
Variance.
Generic file read and write utility for python interface.