home»research»kml»reference»polynomial

polynomial<T>

Description

polynomial<T> is a Kernel. Specifically, it is a Mercer Kernel. If k is an object of class polynomial<T>, and u and v are objects of class T, then k(u,v) returns

eqn_vjwo

where eqn_y6rc is the scale of the used inner product, eqn_moax the bias of the used inner product, and eqn_anzz the order of the polynomial kernel.

Example

vector< double > u(10); 
vector< double > v(10); 
polynomial< vector< double > > kernel(1.0,0.0,3.0); 
cout << kernel( u, v ) << endl; 

Definition

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

Template Parameters

Parameter Description Default
T The polynomial argument type

Model of

Mercer Kernel, Default Constructible, Copy Constructible

Type requirements

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

Members

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

Notes

See also

Mercer Kernel, linear, gaussian, hermitian, sigmoid