MLPACK
1.0.7
|
Public Member Functions | |
IPMetric () | |
Create the IPMetric without an instantiated kernel. More... | |
IPMetric (KernelType &kernel) | |
Create the IPMetric with an instantiated kernel. More... | |
~IPMetric () | |
Destroy the IPMetric object. More... | |
template<typename Vec1Type , typename Vec2Type > | |
double | Evaluate (const Vec1Type &a, const Vec2Type &b) |
Evaluate the metric. More... | |
const KernelType & | Kernel () const |
Get the kernel. More... | |
KernelType & | Kernel () |
Modify the kernel. More... | |
Private Attributes | |
KernelType & | kernel |
The reference to the kernel that is being used. More... | |
KernelType * | localKernel |
The locally stored kernel, if it is necessary. More... | |
Definition at line 30 of file ip_metric.hpp.
mlpack::metric::IPMetric< KernelType >::IPMetric | ( | ) |
Create the IPMetric without an instantiated kernel.
mlpack::metric::IPMetric< KernelType >::IPMetric | ( | KernelType & | kernel | ) |
Create the IPMetric with an instantiated kernel.
mlpack::metric::IPMetric< KernelType >::~IPMetric | ( | ) |
Destroy the IPMetric object.
double mlpack::metric::IPMetric< KernelType >::Evaluate | ( | const Vec1Type & | a, |
const Vec2Type & | b | ||
) |
Evaluate the metric.
|
inline |
Get the kernel.
Definition at line 49 of file ip_metric.hpp.
References mlpack::metric::IPMetric< KernelType >::kernel.
|
inline |
Modify the kernel.
Definition at line 51 of file ip_metric.hpp.
References mlpack::metric::IPMetric< KernelType >::kernel.
|
private |
The reference to the kernel that is being used.
Definition at line 57 of file ip_metric.hpp.
Referenced by mlpack::metric::IPMetric< KernelType >::Kernel().
|
private |
The locally stored kernel, if it is necessary.
Definition at line 55 of file ip_metric.hpp.