12 #ifndef MLPACK_METHODS_KDE_STAT_HPP 13 #define MLPACK_METHODS_KDE_STAT_HPP 36 template<
typename TreeType>
45 inline double MCBeta()
const {
return mcBeta; }
48 inline double&
MCBeta() {
return mcBeta; }
63 inline double MCAlpha()
const {
return mcAlpha; }
66 inline double&
MCAlpha() {
return mcAlpha; }
69 template<
typename Archive>
70 void serialize(Archive& ar,
const unsigned int version)
74 if (version == 0 && Archive::is_loading::value)
80 ar & BOOST_SERIALIZATION_NVP(centroid);
81 ar & BOOST_SERIALIZATION_NVP(validCentroid);
88 ar & BOOST_SERIALIZATION_NVP(mcBeta);
89 ar & BOOST_SERIALIZATION_NVP(mcAlpha);
90 ar & BOOST_SERIALIZATION_NVP(accumAlpha);
91 ar & BOOST_SERIALIZATION_NVP(accumError);
93 else if (Archive::is_loading::value)
double AccumAlpha() const
Get accumulated Monte Carlo alpha of the node.
double MCBeta() const
Get accumulated Monte Carlo alpha of the node.
The core includes that mlpack expects; standard C++ includes and Armadillo.
double & MCBeta()
Modify accumulated Monte Carlo alpha of the node.
double & AccumAlpha()
Modify accumulated Monte Carlo alpha of the node.
Extra data for each node in the tree for the task of kernel density estimation.
void serialize(Archive &ar, const unsigned int version)
Serialize the statistic to/from an archive.
KDEStat(TreeType &)
Initialization for a fully initialized node.
double & MCAlpha()
Modify Monte Carlo alpha of the node.
double & AccumError()
Modify accumulated error tolerance of the node.
double MCAlpha() const
Get Monte Carlo alpha of the node.
KDEStat()
Initialize the statistic.
double AccumError() const
Get accumulated error tolerance of the node.
BOOST_TEMPLATE_CLASS_VERSION(template<>, mlpack::kde::KDEStat, 1)
Set the serialization version of the KDEStat class.