5 #ifndef BPP_NUMERIC_ADAPTIVEKERNELDENSITYESTIMATION_H 6 #define BPP_NUMERIC_ADAPTIVEKERNELDENSITYESTIMATION_H 34 std::vector<double>
c2_;
50 x_(x), n_(x.getNumberOfColumns()), r_(x.getNumberOfRows()),
51 covar_(), invSqrtCovar_(), xMean_(), gamma_(gamma),
52 c1_(0), c2_(x.getNumberOfColumns()), h_(0),
53 lambda_(x.getNumberOfColumns()), pilot_(x.getNumberOfColumns())
64 double kDensity(
const std::vector<double>& x);
83 #endif // BPP_NUMERIC_ADAPTIVEKERNELDENSITYESTIMATION_H The matrix template interface.
RowMatrix< double > invSqrtCovar_
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_