13 #ifndef MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_STAT_HPP
14 #define MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_STAT_HPP
38 template<
typename TreeType>
48 template<
typename Archive>
FirstShim< T > CreateNVP(T &t, const std::string &name, typename boost::enable_if< HasSerialize< T >>::type *=0)
Call this function to produce a name-value pair; this is similar to BOOST_SERIALIZATION_NVP(), but should be used for types that have a Serialize() function (or contain a type that has a Serialize() function) instead of a serialize() function.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Serialize(Archive &ar, const unsigned int)
Serialize the statistic.
Statistic class for RangeSearch, to be set to the StatisticType of the tree type that range search is...
RangeSearchStat()
Initialize the statistic.
double LastDistance() const
Get the last distance evaluation.
RangeSearchStat(TreeType &)
Initialize the statistic given a tree node that this statistic belongs to.
double & LastDistance()
Modify the last distance evaluation.