14 #ifndef __MLPACK_CORE_KERNELS_LAPLACIAN_KERNEL_HPP
15 #define __MLPACK_CORE_KERNELS_LAPLACIAN_KERNEL_HPP
61 template<
typename VecType>
62 double Evaluate(
const VecType& a,
const VecType& b)
const
90 std::ostringstream convert;
91 convert <<
"LaplacianKernel [" <<
this <<
"]" << std::endl;
92 convert <<
" Bandwidth: " <<
bandwidth << std::endl;
This is a template class that can provide information about various kernels.
Linear algebra utility functions, generally performed on matrices or vectors.
std::string ToString() const
Return a string representation of the kernel.
double Evaluate(const VecType &a, const VecType &b) const
Evaluation of the Laplacian kernel.
LaplacianKernel()
Default constructor; sets bandwidth to 1.0.
double & Bandwidth()
Modify the bandwidth.
double Evaluate(const double t) const
Evaluation of the Laplacian kernel given the distance between two points.
static double Evaluate(const VecType1 &a, const VecType2 &b)
Computes the distance between two points.
The standard Laplacian kernel.
double bandwidth
Kernel bandwidth.
double Bandwidth() const
Get the bandwidth.
LaplacianKernel(double bandwidth)
Construct the Laplacian kernel with a custom bandwidth.
static const bool IsNormalized
If true, then the kernel is normalized: K(x, x) = K(y, y) = 1 for all x.