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>
72 ar(CEREAL_NVP(mcBeta));
73 ar(CEREAL_NVP(mcAlpha));
74 ar(CEREAL_NVP(accumAlpha));
75 ar(CEREAL_NVP(accumError));
double AccumError() const
Get accumulated error tolerance of the node.
Definition: kde_stat.hpp:57
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
Extra data for each node in the tree for the task of kernel density estimation.
Definition: kde_stat.hpp:24
double MCBeta() const
Get accumulated Monte Carlo alpha of the node.
Definition: kde_stat.hpp:45
double & AccumAlpha()
Modify accumulated Monte Carlo alpha of the node.
Definition: kde_stat.hpp:54
double AccumAlpha() const
Get accumulated Monte Carlo alpha of the node.
Definition: kde_stat.hpp:51
double & MCBeta()
Modify accumulated Monte Carlo alpha of the node.
Definition: kde_stat.hpp:48
double & AccumError()
Modify accumulated error tolerance of the node.
Definition: kde_stat.hpp:60
void serialize(Archive &ar, const uint32_t)
Serialize the statistic to/from an archive.
Definition: kde_stat.hpp:70
KDEStat()
Initialize the statistic.
Definition: kde_stat.hpp:28
double & MCAlpha()
Modify Monte Carlo alpha of the node.
Definition: kde_stat.hpp:66
double MCAlpha() const
Get Monte Carlo alpha of the node.
Definition: kde_stat.hpp:63
KDEStat(TreeType &)
Initialization for a fully initialized node.
Definition: kde_stat.hpp:37