|
MLPACK
1.0.11
|
The simple linear kernel (dot product). More...
Public Member Functions | |
| LinearKernel () | |
| This constructor does nothing; the linear kernel has no parameters to store. More... | |
| std::string | ToString () const |
| Return a string representation of the kernel. More... | |
Static Public Member Functions | |
| template<typename VecType > | |
| static double | Evaluate (const VecType &a, const VecType &b) |
| Simple evaluation of the dot product. More... | |
The simple linear kernel (dot product).
For any two vectors
and
,
This kernel has no parameters and therefore the evaluation can be static.
Definition at line 42 of file linear_kernel.hpp.
|
inline |
This constructor does nothing; the linear kernel has no parameters to store.
Definition at line 49 of file linear_kernel.hpp.
|
inlinestatic |
Simple evaluation of the dot product.
This evaluation uses Armadillo's dot() function.
| VecType | Type of vector (should be arma::vec or arma::spvec). |
| a | First vector. |
| b | Second vector. |
Definition at line 61 of file linear_kernel.hpp.
|
inline |
Return a string representation of the kernel.
Definition at line 67 of file linear_kernel.hpp.
1.8.6