|
| NormalDistribution () |
| NormalDistribution constructor.
|
|
| NormalDistribution (ScalarType _mu, ScalarType _sigma2) |
| NormalDistribution constructor. More...
|
|
bool | computeParameters (const ScalarContainer &values) override |
| Computes the distribution parameters from a set of values. More...
|
|
double | computeP (ScalarType x) const override |
| Computes the probability of x. More...
|
|
double | computePfromZero (ScalarType x) const override |
| Computes the cumulative probability between 0 and x. More...
|
|
double | computeP (ScalarType x1, ScalarType x2) const override |
| Computes the cumulative probability between x1 and x2. More...
|
|
double | computeChi2Dist (const GenericCloud *Yk, unsigned numberOfClasses, int *histo=nullptr) override |
| Computes the Chi2 distance (related to the Chi2 Test) More...
|
|
const char * | getName () const override |
| Returns distribution name. More...
|
|
bool | getParameters (ScalarType &_mu, ScalarType &_sigma2) const |
| Returns the distribution parameters. More...
|
|
bool | setParameters (ScalarType _mu, ScalarType _sigma2) |
| Sets the distribution parameters. More...
|
|
ScalarType | getMu () const |
| Returns the distribution mean.
|
|
ScalarType | getSigma2 () const |
| Returns the distribution variance.
|
|
bool | computeParameters (const GenericCloud *cloud) |
| Computes the distribution parameters from a point cloud (with scalar values)
|
|
bool | computeRobustParameters (const ScalarContainer &values, double nSigma) |
| Computes robust parameters for the distribution from an array of scalar values. More...
|
|
| GenericDistribution () |
| Default constructor.
|
|
virtual | ~GenericDistribution ()=default |
| Default destructor.
|
|
virtual const char * | getName () const =0 |
| Returns distribution name. More...
|
|
virtual bool | isValid () const |
| Indicates if the distribution parameters are valid. More...
|
|
virtual bool | computeParameters (const ScalarContainer &values)=0 |
| Computes the distribution parameters from a set of values. More...
|
|
virtual double | computeP (ScalarType x) const =0 |
| Computes the probability of x. More...
|
|
virtual double | computePfromZero (ScalarType x) const =0 |
| Computes the cumulative probability between 0 and x. More...
|
|
virtual double | computeP (ScalarType x1, ScalarType x2) const =0 |
| Computes the cumulative probability between x1 and x2. More...
|
|
virtual double | computeChi2Dist (const GenericCloud *Yk, unsigned numberOfClasses, int *histo=nullptr)=0 |
| Computes the Chi2 distance (related to the Chi2 Test) More...
|
|
The Normal/Gaussian statistical distribution.
Implements the GenericDistribution interface.
double NormalDistribution::computeChi2Dist |
( |
const GenericCloud * |
Yk, |
|
|
unsigned |
numberOfClasses, |
|
|
int * |
histo = nullptr |
|
) |
| |
|
overridevirtual |
Computes the Chi2 distance (related to the Chi2 Test)
Computes the Chi2 distance from a group of point, accordingly to a certain number of classes (see Chi2 test theory for more information). The result of projecting each point (or more precisely each scalar value associated to each point) in the different classes can be stored in an array (of the same size as the number of classes). To do so, such an array (already allocated in memory) should be passed as an argument. Warning: be sure to activate an OUTPUT scalar field on the input cloud
- Parameters
-
Yk | a group of points |
numberOfClasses | the number of classes for the Chi2 Test |
histo | an array to store the values projection result (optional) |
- Returns
- the Chi2 distance (or -1.0 if an error occurred)
Implements CCCoreLib::GenericDistribution.