mlpack
|
Statistic class for RangeSearch, to be set to the StatisticType of the tree type that range search is being performed with. More...
#include <range_search_stat.hpp>
Public Member Functions | |
RangeSearchStat () | |
Initialize the statistic. | |
template<typename TreeType > | |
RangeSearchStat (TreeType &) | |
Initialize the statistic given a tree node that this statistic belongs to. More... | |
double | LastDistance () const |
Get the last distance evaluation. | |
double & | LastDistance () |
Modify the last distance evaluation. | |
template<typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the statistic. | |
Statistic class for RangeSearch, to be set to the StatisticType of the tree type that range search is being performed with.
This class just holds the last visited node and the corresponding base case result.
|
inline |
Initialize the statistic given a tree node that this statistic belongs to.
In this case, we ignore the node.