37 bool getParameters(ScalarType& a, ScalarType& b)
const;
44 bool getOtherParameters(ScalarType& mu, ScalarType& sigma2)
const;
47 double computeMode()
const;
49 double computeSkewness()
const;
57 bool setParameters(ScalarType a, ScalarType b, ScalarType valueShift = 0);
62 void setValueShift(ScalarType vs);
68 bool computeParameters(
const ScalarContainer& values)
override;
69 double computeP(ScalarType x)
const override;
70 double computePfromZero(ScalarType x)
const override;
71 double computeP(ScalarType x1, ScalarType x2)
const override;
73 unsigned numberOfClasses,
74 int* histo =
nullptr)
override;
75 const char*
getName()
const override {
return "Weibull"; }
83 virtual bool setChi2ClassesPositions(
unsigned numberOfClasses);
110 ScalarType valueShift,
114 ScalarType valueShift,
A generic class to handle a probability distribution.
std::vector< ScalarType > ScalarContainer
Scalar values container.
The Weibull statistical parametric distribution.
bool parametersDefined
Parameters validity.
ScalarType getValueShift() const
Returns the distribution value shift.
ScalarType m_a
Weibull distribution parameter a (k)
ScalarType m_sigma2
Normal distribution equivalent parameter: variance.
ScalarType m_mu
Normal distribution equivalent parameter: mean.
ScalarType m_valueShift
Weibull distribution parameter 'value shift'.
ScalarType m_b
Weibull distribution parameter b (lambda)
std::vector< ScalarType > chi2ClassesPositions
Chi2 classes limits.
const char * getName() const override
Returns distribution name.
Generic file read and write utility for python interface.