The Cauchy kernel. More...
Public Member Functions | |
CauchyKernel (double bandwidth=1.0) | |
Construct the Cauchy kernel; by default, the bandwidth is 1.0. More... | |
template < typename VecTypeA , typename VecTypeB > | |
double | Evaluate (const VecTypeA &a, const VecTypeB &b) |
Evaluation of the Cauchy kernel. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
Serialize the kernel. More... | |
The Cauchy kernel.
Given two vector , , and a bandwidth (set in the constructor),
For more details, see the following published paper:
Definition at line 44 of file cauchy_kernel.hpp.
|
inline |
Construct the Cauchy kernel; by default, the bandwidth is 1.0.
Definition at line 50 of file cauchy_kernel.hpp.
|
inline |
Evaluation of the Cauchy kernel.
This could be generalized to use any distance metric, not the Euclidean distance, but for now, the Euclidean distance is used.
VecTypeA | Type of first vector (arma::vec, arma::sp_vec). |
VecTypeB | Type of second vector (arma::vec, arma::sp_vec). |
a | First vector. |
b | Second vector. |
Definition at line 65 of file cauchy_kernel.hpp.
References LMetric< TPower, TTakeRoot >::Evaluate().
|
inline |
Serialize the kernel.
Definition at line 75 of file cauchy_kernel.hpp.