#include <kernel.h>
Inheritance diagram for Linear:
Public Member Functions | |
Linear () | |
Linear (std::istream &is) | |
virtual const id_t & | id () const |
virtual Linear * | create () const |
Create a new object using the default constructor. | |
virtual Linear * | clone () const |
Create a new object by replicating itself. | |
virtual REAL | operator() (const Input &a, const Input &b) const |
The inner-product of two input vectors. | |
virtual void | set_params (SVM_detail *) const |
Definition at line 68 of file kernel.h.
|
|
|
|
|
Create a new object by replicating itself.
return new Derived(*this);
Implements Kernel. |
|
Create a new object using the default constructor. The code for a derived class Derived is always return new Derived(); Implements Kernel. |
|
Implements Object. |
|
The inner-product of two input vectors.
Implements Kernel. Definition at line 76 of file kernel.h. References DOTPROD. |
|
In order to keep the SVM interface simple and avoid member functions specific to kernels (e.g., set_gamma()), we use Kernel to pass kernel parameters to SVM_detail. Implements Kernel. |