MLPACK
1.0.11
|
Statistic for multi-resolution kd-trees. More...
Public Member Functions | |
MRKDStatistic () | |
Initialize an empty statistic. More... | |
template<typename TreeType > | |
MRKDStatistic (const TreeType &) | |
This constructor is called when a node is finished initializing. More... | |
size_t | Begin () const |
Get the index of the initial item in the dataset. More... | |
size_t & | Begin () |
Modify the index of the initial item in the dataset. More... | |
const arma::colvec & | CenterOfMass () const |
Get the center of mass. More... | |
arma::colvec & | CenterOfMass () |
Modify the center of mass. More... | |
size_t | Count () const |
Get the number of items in the dataset. More... | |
size_t & | Count () |
Modify the number of items in the dataset. More... | |
size_t | DominatingCentroid () const |
Get the index of the dominating centroid. More... | |
size_t & | DominatingCentroid () |
Modify the index of the dominating centroid. More... | |
std::string | ToString () const |
Returns a string representation of this object. More... | |
const std::vector< size_t > & | Whitelist () const |
Access the whitelist. More... | |
std::vector< size_t > & | Whitelist () |
Modify the whitelist. More... | |
Private Attributes | |
size_t | begin |
The initial item in the dataset, so we don't have to make a copy. More... | |
arma::colvec | centerOfMass |
The center of mass for this dataset. More... | |
size_t | count |
The number of items in the dataset. More... | |
const arma::mat * | dataset |
The data points this object contains. More... | |
size_t | dominatingCentroid |
The index of the dominating centroid of the associated hyperrectangle. More... | |
bool | isWhitelistValid |
Whether or not the whitelist is valid. More... | |
const MRKDStatistic * | leftStat |
The left child. More... | |
const MRKDStatistic * | parentStat |
A link to the parent node; NULL if this is the root. More... | |
const MRKDStatistic * | rightStat |
The right child. More... | |
double | sumOfSquaredNorms |
The sum of the squared Euclidean norms for this dataset. More... | |
std::vector< size_t > | whitelist |
The list of centroids that cannot own this hyperrectangle. More... | |
Statistic for multi-resolution kd-trees.
Definition at line 33 of file mrkd_statistic.hpp.
mlpack::tree::MRKDStatistic::MRKDStatistic | ( | ) |
Initialize an empty statistic.
mlpack::tree::MRKDStatistic::MRKDStatistic | ( | const TreeType & | ) |
This constructor is called when a node is finished initializing.
node | The node that has been finished. |
|
inline |
Get the index of the initial item in the dataset.
Definition at line 53 of file mrkd_statistic.hpp.
References begin.
|
inline |
Modify the index of the initial item in the dataset.
Definition at line 55 of file mrkd_statistic.hpp.
References begin.
|
inline |
|
inline |
Modify the center of mass.
Definition at line 65 of file mrkd_statistic.hpp.
References centerOfMass.
|
inline |
Get the number of items in the dataset.
Definition at line 58 of file mrkd_statistic.hpp.
References count.
|
inline |
Modify the number of items in the dataset.
Definition at line 60 of file mrkd_statistic.hpp.
References count.
|
inline |
Get the index of the dominating centroid.
Definition at line 68 of file mrkd_statistic.hpp.
References dominatingCentroid.
|
inline |
Modify the index of the dominating centroid.
Definition at line 70 of file mrkd_statistic.hpp.
References dominatingCentroid.
std::string mlpack::tree::MRKDStatistic::ToString | ( | ) | const |
Returns a string representation of this object.
|
inline |
|
inline |
|
private |
The initial item in the dataset, so we don't have to make a copy.
Definition at line 81 of file mrkd_statistic.hpp.
Referenced by Begin().
|
private |
The center of mass for this dataset.
Definition at line 93 of file mrkd_statistic.hpp.
Referenced by CenterOfMass().
|
private |
The number of items in the dataset.
Definition at line 83 of file mrkd_statistic.hpp.
Referenced by Count().
|
private |
The data points this object contains.
Definition at line 79 of file mrkd_statistic.hpp.
|
private |
The index of the dominating centroid of the associated hyperrectangle.
Definition at line 99 of file mrkd_statistic.hpp.
Referenced by DominatingCentroid().
|
private |
Whether or not the whitelist is valid.
Definition at line 104 of file mrkd_statistic.hpp.
|
private |
The left child.
Definition at line 85 of file mrkd_statistic.hpp.
|
private |
A link to the parent node; NULL if this is the root.
Definition at line 89 of file mrkd_statistic.hpp.
|
private |
The right child.
Definition at line 87 of file mrkd_statistic.hpp.
|
private |
The sum of the squared Euclidean norms for this dataset.
Definition at line 95 of file mrkd_statistic.hpp.
|
private |
The list of centroids that cannot own this hyperrectangle.
Definition at line 102 of file mrkd_statistic.hpp.
Referenced by Whitelist().