mlpack
Public Member Functions | List of all members
mlpack::fastmks::FastMKSStat Class Reference

The statistic used in trees with FastMKS. More...

#include <fastmks_stat.hpp>

Public Member Functions

 FastMKSStat ()
 Default initialization.
 
template<typename TreeType >
 FastMKSStat (const TreeType &node)
 Initialize this statistic for the given tree node. More...
 
double SelfKernel () const
 Get the self-kernel.
 
double & SelfKernel ()
 Modify the self-kernel.
 
double Bound () const
 Get the bound.
 
double & Bound ()
 Modify the bound.
 
double LastKernel () const
 Get the last kernel evaluation.
 
double & LastKernel ()
 Modify the last kernel evaluation.
 
void * LastKernelNode () const
 Get the address of the node corresponding to the last distance evaluation.
 
void *& LastKernelNode ()
 Modify the address of the node corresponding to the last distance evaluation. More...
 
template<typename Archive >
void serialize (Archive &ar, const uint32_t)
 Serialize the statistic.
 

Detailed Description

The statistic used in trees with FastMKS.

This stores both the bound and the self-kernels for each node in the tree.

Constructor & Destructor Documentation

◆ FastMKSStat()

template<typename TreeType >
mlpack::fastmks::FastMKSStat::FastMKSStat ( const TreeType &  node)
inline

Initialize this statistic for the given tree node.

The TreeType's metric better be IPMetric with some kernel type (that is, Metric().Kernel() must exist).

Parameters
nodeNode that this statistic is built for.

Member Function Documentation

◆ LastKernelNode()

void*& mlpack::fastmks::FastMKSStat::LastKernelNode ( )
inline

Modify the address of the node corresponding to the last distance evaluation.


The documentation for this class was generated from the following file: