23 #ifndef __MLPACK_CORE_TREE_COSINE_TREE_COSINE_TREE_HPP
24 #define __MLPACK_CORE_TREE_COSINE_TREE_COSINE_TREE_HPP
98 void Data(arma::mat& d);
118 #include "cosine_tree_impl.hpp"
CosineTree * left
The left child node.
CosineTree * Right() const
Gets the right child of this node.
size_t NumPoints() const
Return the number of points in this node (0 if not a leaf).
arma::mat Data()
Returns a reference to the data.
~CosineTree()
Deletes this node, deallocating the memory for the children and calling their destructors in turn...
CosineTree * Left() const
Gets the left child of this node.
arma::vec probabilities
Sampling Probabilities.
CosineTree * right
The right child node.
arma::rowvec centroid
Centroid.
size_t numPoints
Number of points in the node.
CosineTree & Child(const size_t child) const
Return the specified child (0 will be left, 1 will be right).
arma::vec Probabilities()
Returns a reference to Sample Probabilites.
CosineTree()
Create an empty tree node.
arma::rowvec Centroid()
Returns a reference to the centroid.