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(CEREAL_NVP(bandwidth));
91 static const bool IsNormalized =
true;
This is a template class that can provide information about various kernels.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
static VecTypeA::elem_type Evaluate(const VecTypeA &a, const VecTypeB &b)
Computes the distance between two points.
CauchyKernel(double bandwidth=1.0)
Construct the Cauchy kernel; by default, the bandwidth is 1.0.
void serialize(Archive &ar, const uint32_t)
Serialize the kernel.
double Evaluate(const VecTypeA &a, const VecTypeB &b)
Evaluation of the Cauchy kernel.