40 #ifndef _ADAPTIVEKERNELDENSITYESTIMATION_H_ 41 #define _ADAPTIVEKERNELDENSITYESTIMATION_H_ 69 std::vector<double>
c2_;
85 x_(x),
n_(x.getNumberOfColumns()),
r_(x.getNumberOfRows()),
87 c1_(0),
c2_(x.getNumberOfColumns()),
h_(0),
88 lambda_(x.getNumberOfColumns()),
pilot_(x.getNumberOfColumns())
100 double kDensity(
const std::vector<double>& x);
122 #endif //_ADAPTIVEKERNELDENSITYESTIMATION_H_ The matrix template interface.
RowMatrix< double > invSqrtCovar_
This class allows to perform a correspondence analysis.
AdaptiveKernelDensityEstimation(const Matrix< double > &x, double gamma=0.5)
Build a new AdaptiveKernelDensityEstimation object.
RowMatrix< double > covar_
std::vector< double > lambda_
virtual ~AdaptiveKernelDensityEstimation()
std::vector< double > c2_
void sampleMean_(const Matrix< double > &x, std::vector< double > &mean)
double kernel_(const Matrix< double > &x)
The kernel function.
double kDensity(const std::vector< double > &x)
std::vector< double > pilot_
Density estimation using the adaptive kernel method.
std::vector< double > xMean_