ip_metric.hpp
Go to the documentation of this file.00001
00023 #ifndef __MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
00024 #define __MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
00025
00026 namespace mlpack {
00027 namespace metric {
00028
00029 template<typename KernelType>
00030 class IPMetric
00031 {
00032 public:
00034 IPMetric();
00035
00037 IPMetric(KernelType& kernel);
00038
00040 ~IPMetric();
00041
00045 template<typename Vec1Type, typename Vec2Type>
00046 double Evaluate(const Vec1Type& a, const Vec2Type& b);
00047
00049 const KernelType& Kernel() const { return kernel; }
00051 KernelType& Kernel() { return kernel; }
00052
00053 private:
00055 KernelType* localKernel;
00057 KernelType& kernel;
00058 };
00059
00060 };
00061 };
00062
00063
00064 #include "ip_metric_impl.hpp"
00065
00066 #endif