14 #ifndef __MLPACK_CORE_KERNELS_POLYNOMIAL_KERNEL_HPP 15 #define __MLPACK_CORE_KERNELS_POLYNOMIAL_KERNEL_HPP 56 template<
typename VecTypeA,
typename VecTypeB>
57 double Evaluate(
const VecTypeA& a,
const VecTypeB& b)
const 73 template<
typename Archive>
double degree
The degree of the polynomial.
PolynomialKernel(const double degree=2.0, const double offset=0.0)
Construct the Polynomial Kernel with the given offset and degree.
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 & Offset()
Modify the offset of the dot product of the arguments.
const double & Offset() const
Get the offset of the dot product of the arguments.
const double & Degree() const
Get the degree of the polynomial.
double offset
The offset of the dot product of the arguments.
void Serialize(Archive &ar, const unsigned int)
Serialize the kernel.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
The simple polynomial kernel.
double & Degree()
Modify the degree of the polynomial.
double Evaluate(const VecTypeA &a, const VecTypeB &b) const
Simple evaluation of the dot product.