---
name: "mlpack_range_RangeSearchStat"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_range_RangeSearchStat"
---

# mlpack\_range\_RangeSearchStat(3)

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

## NAME

mlpack::range::RangeSearchStat -

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

## SYNOPSIS

### Public Member Functions

**RangeSearchStat** ()\
 *Initialize the statistic.*  template\<typename TreeType \> **RangeSearchStat** (TreeType &)\
 *Initialize the statistic given a tree node that this statistic belongs to.*  double **LastDistance** () const \
 *Get the last distance evaluation.*  double & **LastDistance** ()\
 *Modify the last distance evaluation.*  void \* **LastDistanceNode** () const \
 *Get the last distance evaluation node.*  void \*& **LastDistanceNode** ()\
 *Modify the last distance evaluation node.*

### Private Attributes

double **lastDistance**\
 *The last distance evaluation.*  void \* **lastDistanceNode**\
 *The last distance evaluation node.*

## 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 36 of file range\_search\_stat.hpp.

## Constructor & Destructor Documentation

### mlpack::range::RangeSearchStat::RangeSearchStat ()` [inline]`

Initialize the statistic.

Definition at line 42 of file range\_search\_stat.hpp.

### template\<typename TreeType \> mlpack::range::RangeSearchStat::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 49 of file range\_search\_stat.hpp.

## Member Function Documentation

### double mlpack::range::RangeSearchStat::LastDistance () const` [inline]`

Get the last distance evaluation.

Definition at line 58 of file range\_search\_stat.hpp.

References lastDistance.

### double& mlpack::range::RangeSearchStat::LastDistance ()` [inline]`

Modify the last distance evaluation.

Definition at line 60 of file range\_search\_stat.hpp.

References lastDistance.

### void\* mlpack::range::RangeSearchStat::LastDistanceNode () const` [inline]`

Get the last distance evaluation node.

Definition at line 54 of file range\_search\_stat.hpp.

References lastDistanceNode.

### void\*& mlpack::range::RangeSearchStat::LastDistanceNode ()` [inline]`

Modify the last distance evaluation node.

Definition at line 56 of file range\_search\_stat.hpp.

References lastDistanceNode.

## Member Data Documentation

### double mlpack::range::RangeSearchStat::lastDistance` [private]`

The last distance evaluation.

Definition at line 66 of file range\_search\_stat.hpp.

Referenced by LastDistance().

### void\* mlpack::range::RangeSearchStat::lastDistanceNode` [private]`

The last distance evaluation node.

Definition at line 64 of file range\_search\_stat.hpp.

Referenced by LastDistanceNode().

## Author

Generated automatically by Doxygen for MLPACK from the source code.
