20 KDE(std::vector<std::vector<double>> mat);
53 double Evaluate(
const std::vector<double>& v)
const;
59 double Evaluate(
const double& v)
const;
65 double Evaluate(
const double* v)
const;
72 std::vector<double>
FastFunction(std::vector<std::vector<double>> points,
std::vector< double > FastFunction(std::vector< std::vector< double >> points, double eps=1e-3)
Returns the value of the KDE in the d-dimensional point (fast algorithm)
Definition: KDE.cc:72
Matrix< double > SilvermanBandwidth(std::vector< double > vsig, size_t n)
Returns the Silverman bandwidth matrix of order n.
Definition: KDE.cc:288
double Evaluate(const std::vector< double > &v) const
Performs the density estimation at an n-point v.
Definition: KDE.cc:37
Matrix< double > _H
nxn bandwidth matrix
Definition: KDE.hh:102
Set of functions that compose the Statistics package.
std::vector< std::vector< double > > _samples
nxN sample matrix
Definition: KDE.hh:103
Defines the methods associated with the Gaussian distribution in any dimension.
Definition: DGaus.hh:19
double FunctionROOT(double *x, double *par)
Returns the value of the KDE in the d-dimensional point (ROOT format)
Definition: KDE.cc:247
double operator()(const std::vector< double > &v) const
Overloaded function operator, calls Evaluate.
Definition: KDE.hh:32
KDE()
Default constructor, initilizes everything to 0.
Definition: KDE.cc:3
DGaus _kernel
Multivariate Gaussian Kernel.
Definition: KDE.hh:104
double operator()(const double &v) const
Overloaded function operator, calls Evaluate.
Definition: KDE.hh:38
~KDE()
Destructor.
Definition: KDE.cc:35
double operator()(const double *v) const
Overloaded function operator, calls Evaluate.
Definition: KDE.hh:44
Computes the Kernel Density Estimator (KDE) of a set of points.
Definition: KDE.hh:14
KDE & operator=(const KDE &kde)
Equality operator.
Definition: KDE.cc:23
void Initialize()
Initializes the KDE parameters, bandwidth.
Definition: KDE.cc:260
std::string _btype
Bandwidth algorithm name.
Definition: KDE.hh:101
Matrix< double > ScottBandwidth(std::vector< double > vsig, size_t n)
Returns the Scott bandwidth matrix of order n.
Definition: KDE.cc:309