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
where is the scale of the used inner product, the bias of the used inner product, and the order of the polynomial kernel.
vector< double > u(10); vector< double > v(10); polynomial< vector< double > > kernel(1.0,0.0,3.0); cout << kernel( u, v ) << endl;
Defined in the KML header <kml/polynomial.hpp>.
Parameter | Description | Default |
T | The polynomial argument type | |
Mercer Kernel, Default Constructible, Copy Constructible
T must be a vector type or a numeric type; linear<T> should evaluate.
Member | Where defined | Description |
polynomial() | Default Constructible | The default constructor |
result_type | Input value | The type of the result: input_value<T> |