13 #ifndef MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
14 #define MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
31 template<
typename KernelType>
53 template<
typename VecTypeA,
typename VecTypeB>
54 typename VecTypeA::elem_type
Evaluate(
const VecTypeA& a,
const VecTypeB& b);
57 const KernelType&
Kernel()
const {
return *kernel; }
59 KernelType&
Kernel() {
return *kernel; }
62 template<
typename Archive>
63 void Serialize(Archive& ar,
const unsigned int version);
76 #include "ip_metric_impl.hpp"
VecTypeA::elem_type Evaluate(const VecTypeA &a, const VecTypeB &b)
Evaluate the metric.
IPMetric()
Create the IPMetric without an instantiated kernel.
The inner product metric, IPMetric, takes a given Mercer kernel (KernelType), and when Evaluate() is ...
void Serialize(Archive &ar, const unsigned int version)
Serialize the metric.
KernelType & Kernel()
Modify the kernel.
const KernelType & Kernel() const
Get the kernel.
~IPMetric()
Destroy the IPMetric object.