RangeSearchStat Class Reference

Statistic class for RangeSearch, to be set to the StatisticType of the tree type that range search is being performed with. More...

Public Member Functions

 RangeSearchStat ()
 Initialize the statistic. More...

 
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. More...

 
double & LastDistance ()
 Modify the last distance evaluation. More...

 
template
<
typename
Archive
>
void serialize (Archive &ar, const unsigned int)
 Serialize the statistic. More...

 

Detailed Description

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.

Definition at line 26 of file range_search_stat.hpp.

Constructor & Destructor Documentation

◆ RangeSearchStat() [1/2]

RangeSearchStat ( )
inline

Initialize the statistic.

Definition at line 32 of file range_search_stat.hpp.

◆ RangeSearchStat() [2/2]

RangeSearchStat ( TreeType &  )
inline

Initialize the statistic given a tree node that this statistic belongs to.

In this case, we ignore the node.

Definition at line 39 of file range_search_stat.hpp.

Member Function Documentation

◆ LastDistance() [1/2]

double LastDistance ( ) const
inline

Get the last distance evaluation.

Definition at line 43 of file range_search_stat.hpp.

◆ LastDistance() [2/2]

double& LastDistance ( )
inline

Modify the last distance evaluation.

Definition at line 45 of file range_search_stat.hpp.

◆ serialize()

void serialize ( Archive &  ar,
const unsigned  int 
)
inline

Serialize the statistic.

Definition at line 49 of file range_search_stat.hpp.


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.2.1/src/mlpack/methods/range_search/range_search_stat.hpp