Hyperbolic tangent kernel.
More...
Hyperbolic tangent kernel.
For any two vectors
,
and a given scale
and offset 
Definition at line 30 of file hyperbolic_tangent_kernel.hpp.
mlpack::kernel::HyperbolicTangentKernel::HyperbolicTangentKernel |
( |
| ) |
|
|
inline |
mlpack::kernel::HyperbolicTangentKernel::HyperbolicTangentKernel |
( |
double |
scale, |
|
|
double |
offset |
|
) |
| |
|
inline |
Construct the hyperbolic tangent kernel with custom scale factor and offset.
- Parameters
-
scale | Scaling factor for <x, y>. |
offset | Kernel offset. |
Definition at line 46 of file hyperbolic_tangent_kernel.hpp.
template<typename VecType >
double mlpack::kernel::HyperbolicTangentKernel::Evaluate |
( |
const VecType & |
a, |
|
|
const VecType & |
b |
|
) |
| |
|
inline |
Evaluate the hyperbolic tangent kernel.
This evaluation uses Armadillo's dot() function.
- Template Parameters
-
VecType | Type of vector (should be arma::vec or arma::spvec). |
- Parameters
-
a | First vector. |
b | Second vector. |
- Returns
- K(a, b).
Definition at line 60 of file hyperbolic_tangent_kernel.hpp.
References offset, and scale.
double mlpack::kernel::HyperbolicTangentKernel::Offset |
( |
| ) |
const |
|
inline |
double& mlpack::kernel::HyperbolicTangentKernel::Offset |
( |
| ) |
|
|
inline |
double mlpack::kernel::HyperbolicTangentKernel::Scale |
( |
| ) |
const |
|
inline |
double& mlpack::kernel::HyperbolicTangentKernel::Scale |
( |
| ) |
|
|
inline |
std::string mlpack::kernel::HyperbolicTangentKernel::ToString |
( |
| ) |
const |
|
inline |
double mlpack::kernel::HyperbolicTangentKernel::offset |
|
private |
double mlpack::kernel::HyperbolicTangentKernel::scale |
|
private |
The documentation for this class was generated from the following file: