8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
16 using namespace pybind11::literals;
23 py::class_<cloudViewer::GenericDistribution> GenericDistribution(cccorelib,
"GenericDistribution");
38 .def(
"computeChi2Dist",
40 "GenericDistribution",
void define_GenericDistribution(py::module &cccorelib)
A generic class to handle a probability distribution.
virtual double computeP(ScalarType x) const =0
Computes the probability of x.
virtual bool computeParameters(const ScalarContainer &values)=0
Computes the distribution parameters from a set of values.
virtual double computeChi2Dist(const GenericCloud *Yk, unsigned numberOfClasses, int *histo=nullptr)=0
Computes the Chi2 distance (related to the Chi2 Test)
virtual const char * getName() const =0
Returns distribution name.
virtual bool isValid() const
Indicates if the distribution parameters are valid.
virtual double computePfromZero(ScalarType x) const =0
Computes the cumulative probability between 0 and x.