14 #ifndef __MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP 15 #define __MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP 47 scale(scale), offset(offset)
61 template<
typename VecTypeA,
typename VecTypeB>
62 double Evaluate(
const VecTypeA& a,
const VecTypeB& b)
78 template<
typename Archive>
HyperbolicTangentKernel()
This constructor sets the default scale to 1.0 and offset to 0.0.
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.
Hyperbolic tangent kernel.
void Serialize(Archive &ar, const unsigned int)
Serialize the kernel.
double Scale() const
Get scale factor.
double Evaluate(const VecTypeA &a, const VecTypeB &b)
Evaluate the hyperbolic tangent kernel.
double & Offset()
Modify offset for the kernel.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
HyperbolicTangentKernel(double scale, double offset)
Construct the hyperbolic tangent kernel with custom scale factor and offset.
double & Scale()
Modify scale factor.
double Offset() const
Get offset for the kernel.