22 #ifndef __MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP
23 #define __MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP
55 scale(scale), offset(offset)
67 template<
typename VecType>
68 double Evaluate(
const VecType& a,
const VecType& b)
86 std::ostringstream convert;
87 convert <<
"HyperbolicTangentKernel [" <<
this <<
"]" << std::endl;
88 convert <<
" Scale: " <<
scale << std::endl;
89 convert <<
" Offset: " <<
offset << std::endl;
std::string ToString() const
Convert object to string.
HyperbolicTangentKernel()
This constructor sets the default scale to 1.0 and offset to 0.0.
Hyperbolic tangent kernel.
double Evaluate(const VecType &a, const VecType &b)
Evaluate the hyperbolic tangent kernel.
double & Offset()
Modify offset for the kernel.
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.
double Scale() const
Get scale factor.