12#ifndef MLPACK_CORE_KERNELS_CAUCHY_KERNEL_HPP
13#define MLPACK_CORE_KERNELS_CAUCHY_KERNEL_HPP
64 template<
typename VecTypeA,
typename VecTypeB>
65 double Evaluate(
const VecTypeA& a,
const VecTypeB& b)
74 template<
typename Archive>
77 ar & BOOST_SERIALIZATION_NVP(bandwidth);
double Evaluate(const VecTypeA &a, const VecTypeB &b)
Evaluation of the Cauchy kernel.
CauchyKernel(double bandwidth=1.0)
Construct the Cauchy kernel; by default, the bandwidth is 1.0.
void serialize(Archive &ar, const unsigned int)
Serialize the kernel.
This is a template class that can provide information about various kernels.
static const bool IsNormalized
If true, then the kernel is normalized: K(x, x) = K(y, y) = 1 for all x.
static VecTypeA::elem_type Evaluate(const VecTypeA &a, const VecTypeB &b)
Computes the distance between two points.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.