home»research»kml»reference»sigmoid

sigmoid<T>

Description

Sigmoid<T> is a Kernel. If k is an object of class sigmoid<T>, and u and v are objects of class T, then k(u,v) returns

eqn_o0ob

where eqn_y6rc is the scale of the used inner product, eqn_moax the bias of the used inner product.

Example

vector< double > u(10); 
vector< double > v(10); 
sigmoid< vector< double > > kernel(1.0,0.1); 
cout << kernel( u, v ) << endl; 

Definition

Defined in the KML header <kml/sigmoid.hpp>.

Template Parameters

Parameter Description Default
T The sigmoid argument type

Model of

Kernel

Type requirements

T must be a vector type or a numeric type; linear<T> should evaluate.

Members

Member Where defined Description
sigmoid() Default Constructible The default constructor
result_type Input value The type of the result: input_value<T>

Notes

See also

Kernel, linear, gaussian, hermitian, polynomial