14 #ifndef __MLPACK_CORE_KERNELS_LAPLACIAN_KERNEL_HPP
15 #define __MLPACK_CORE_KERNELS_LAPLACIAN_KERNEL_HPP
62 template<
typename VecTypeA,
typename VecTypeB>
63 double Evaluate(
const VecTypeA& a,
const VecTypeB& b)
const
102 template<
typename Archive>
This is a template class that can provide information about various kernels.
double Gradient(const double t) const
Evaluation of the gradient of the Laplacian kernel given the distance between two points...
Linear algebra utility functions, generally performed on matrices or vectors.
FirstShim< T > CreateNVP(T &t, const std::string &name, typename boost::enable_if< HasSerialize< T >>::type *=0)
Call this function to produce a name-value pair; this is similar to BOOST_SERIALIZATION_NVP(), but should be used for types that have a Serialize() function (or contain a type that has a Serialize() function) instead of a serialize() function.
double Evaluate(const VecTypeA &a, const VecTypeB &b) const
Evaluation of the Laplacian kernel.
void Serialize(Archive &ar, const unsigned int)
Serialize the 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.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
static const bool UsesSquaredDistance
If true, then the kernel include a squared distance, ||x - y||^2 .
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.
static double Evaluate(const VecTypeA &a, const VecTypeB &b)
Computes the distance between two points.