SYNOPSIS

Public Member Functions

FastMKSStat ()

Default initialization. template<typename TreeType > FastMKSStat (const TreeType &node)

Initialize this statistic for the given tree node. 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. double SelfKernel () const

Get the self-kernel. double & SelfKernel ()

Modify the self-kernel.

Private Attributes

double bound

The bound for pruning. double lastKernel

The last kernel evaluation. void * lastKernelNode

The node corresponding to the last kernel evaluation. double selfKernel

The self-kernel evaluation: sqrt(K(centroid, centroid)).

Detailed Description

The statistic used in trees with FastMKS.

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

Definition at line 35 of file fastmks_stat.hpp.

Constructor & Destructor Documentation

mlpack::fastmks::FastMKSStat::FastMKSStat ()\fC [inline]\fP

Default initialization.

Definition at line 41 of file fastmks_stat.hpp.

template<typename TreeType > mlpack::fastmks::FastMKSStat::FastMKSStat (const TreeType &node)\fC [inline]\fP

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:

node Node that this statistic is built for.

Definition at line 56 of file fastmks_stat.hpp.

References selfKernel.

Member Function Documentation

double mlpack::fastmks::FastMKSStat::Bound () const\fC [inline]\fP

Get the bound.

Definition at line 96 of file fastmks_stat.hpp.

References bound.

double& mlpack::fastmks::FastMKSStat::Bound ()\fC [inline]\fP

Modify the bound.

Definition at line 98 of file fastmks_stat.hpp.

References bound.

double mlpack::fastmks::FastMKSStat::LastKernel () const\fC [inline]\fP

Get the last kernel evaluation.

Definition at line 101 of file fastmks_stat.hpp.

References lastKernel.

double& mlpack::fastmks::FastMKSStat::LastKernel ()\fC [inline]\fP

Modify the last kernel evaluation.

Definition at line 103 of file fastmks_stat.hpp.

References lastKernel.

void* mlpack::fastmks::FastMKSStat::LastKernelNode () const\fC [inline]\fP

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

Definition at line 106 of file fastmks_stat.hpp.

References lastKernelNode.

void*& mlpack::fastmks::FastMKSStat::LastKernelNode ()\fC [inline]\fP

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

Definition at line 109 of file fastmks_stat.hpp.

References lastKernelNode.

double mlpack::fastmks::FastMKSStat::SelfKernel () const\fC [inline]\fP

Get the self-kernel.

Definition at line 91 of file fastmks_stat.hpp.

References selfKernel.

double& mlpack::fastmks::FastMKSStat::SelfKernel ()\fC [inline]\fP

Modify the self-kernel.

Definition at line 93 of file fastmks_stat.hpp.

References selfKernel.

Member Data Documentation

double mlpack::fastmks::FastMKSStat::bound\fC [private]\fP

The bound for pruning.

Definition at line 113 of file fastmks_stat.hpp.

Referenced by Bound().

double mlpack::fastmks::FastMKSStat::lastKernel\fC [private]\fP

The last kernel evaluation.

Definition at line 119 of file fastmks_stat.hpp.

Referenced by LastKernel().

void* mlpack::fastmks::FastMKSStat::lastKernelNode\fC [private]\fP

The node corresponding to the last kernel evaluation. This has to be void otherwise we get recursive template arguments.

Definition at line 123 of file fastmks_stat.hpp.

Referenced by LastKernelNode().

double mlpack::fastmks::FastMKSStat::selfKernel\fC [private]\fP

The self-kernel evaluation: sqrt(K(centroid, centroid)).

Definition at line 116 of file fastmks_stat.hpp.

Referenced by FastMKSStat(), and SelfKernel().

Author

Generated automatically by Doxygen for MLPACK from the source code.