22 #ifndef __MLPACK_CORE_TREE_MRKD_STATISTIC_HPP
23 #define __MLPACK_CORE_TREE_MRKD_STATISTIC_HPP
44 template<
typename TreeType>
111 #include "mrkd_statistic_impl.hpp"
113 #endif // __MLPACK_CORE_TREE_MRKD_STATISTIC_HPP
MRKDStatistic()
Initialize an empty statistic.
Linear algebra utility functions, generally performed on matrices or vectors.
std::vector< size_t > whitelist
The list of centroids that cannot own this hyperrectangle.
size_t begin
The initial item in the dataset, so we don't have to make a copy.
size_t DominatingCentroid() const
Get the index of the dominating centroid.
const arma::colvec & CenterOfMass() const
Get the center of mass.
size_t Begin() const
Get the index of the initial item in the dataset.
const MRKDStatistic * rightStat
The right child.
const MRKDStatistic * leftStat
The left child.
Statistic for multi-resolution kd-trees.
const std::vector< size_t > & Whitelist() const
Access the whitelist.
arma::colvec & CenterOfMass()
Modify the center of mass.
size_t & DominatingCentroid()
Modify the index of the dominating centroid.
size_t & Count()
Modify the number of items in the dataset.
bool isWhitelistValid
Whether or not the whitelist is valid.
size_t & Begin()
Modify the index of the initial item in the dataset.
std::vector< size_t > & Whitelist()
Modify the whitelist.
arma::colvec centerOfMass
The center of mass for this dataset.
size_t dominatingCentroid
The index of the dominating centroid of the associated hyperrectangle.
size_t Count() const
Get the number of items in the dataset.
double sumOfSquaredNorms
The sum of the squared Euclidean norms for this dataset.
std::string ToString() const
Returns a string representation of this object.
const MRKDStatistic * parentStat
A link to the parent node; NULL if this is the root.
size_t count
The number of items in the dataset.
const arma::mat * dataset
The data points this object contains.