mlpack
|
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. | |
The statistic used in trees with FastMKS.
This stores both the bound and the self-kernels for each node in the tree.
|
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).
node | Node that this statistic is built for. |
|
inline |
Modify the address of the node corresponding to the last distance evaluation.