|
| virtual bool | is_stationary () const =0 |
| | Check whether the kernel is is stationary.
|
| |
| template<class DerivedX, class DerivedY> |
| Matrix | operator() (const MatrixBase< DerivedX > &x1, const MatrixBase< DerivedY > &x2) const |
| | Compute the kernel function on \( x_1 \) and \( x_2 \), both being matrices of row vectors in \( \texttip{\mathcal{X}}{Polish sample vector space} \subseteq \mathbb{R}^d \),.
|
| |
| template<class Derived> |
| Matrix | operator() (const MatrixBase< Derived > &x) const |
| | Compute the kernel function on \( \texttip{x}{Element of the vector space} \), which is a matrix of row vectors in \( \texttip{\mathcal{X}}{Polish sample vector space} \subseteq \mathbb{R}^d \),.
|
| |
| template<class Derived> |
| Matrix | operator() (const MatrixBase< Derived > &x, std::vector< Matrix > &gradient) const |
| | Compute the kernel function on \( \texttip{x}{Element of the vector space} \), which is a matrix of row vectors in \( \texttip{\mathcal{X}}{Polish sample vector space} \subseteq \mathbb{R}^d \),.
|
| |
| virtual std::unique_ptr< Kernel > | clone () const =0 |
| | Clone the kernel.
|
| |
| virtual std::string | to_string () const |
| | Get string representation of the kernel.
|
| |
| template<IsAnyOf< int, double, const Vector & > T> |
| T | get (Parameter parameter) const |
| | Get the value of the specified parameter.
|
| |
| template<Parameter P> |
| internal::ParameterType< P >::ref_type | get () const |
| | Get the value of the specified parameter.
|
| |
| std::variant< int, double, Vector > | get (Parameter parameter) const |
| | Get the value of the specified parameter.
|
| |
| void | set (Parameter parameter, const std::variant< int, double, Vector > &value) |
| | Set the parameter to the indicated value.
|
| |
| template<Parameter P> |
| void | set (const std::variant< int, double, Vector > &value) |
| | Set the parameter to the indicated value.
|
| |
| void | set (Parameter parameter, std::size_t idx, const std::variant< std::vector< int >, std::vector< double >, std::vector< Vector > > &values) |
| | Set the parameter to the index-th value among the indicated values.
|
| |
| template<Parameter P> |
| void | set (std::size_t idx, const std::variant< std::vector< int >, std::vector< double >, std::vector< Vector > > &values) |
| | Set the parameter to the index-th value among the indicated values.
|
| |
| virtual void | set (Parameter parameter, int value) |
| | Set the parameter to the indicated value.
|
| |
| virtual void | set (Parameter parameter, double value) |
| | Set the parameter to the indicated value.
|
| |
| virtual void | set (Parameter parameter, const Vector &value) |
| | Set the parameter to the indicated value.
|
| |
| template<Parameter P> |
| void | set (typename internal::ParameterType< P >::ref_type value) |
| | Set the parameter to the indicated value.
|
| |
| bool | has (const Parameter parameter) const |
| | Check whether the parameter is present in this object.
|
| |
| Parameters | parameters () const |
| | Get read-only access to the parameters of the parametrizable object.
|
| |
| std::vector< Parameter > | parameters_list () const |
| | Get read-only access to the list of parameters of the parametrizable object.
|
| |
| Parametrizable & | load (const Parametrizable &o) |
| | Load parameters from another Parametrizable object.
|
| |
|
| Matrix | operator() (ConstMatrixRef x1, ConstMatrixRef x2, std::vector< Matrix > *gradient) const |
| | Compute the kernel function on \( x_1 \) and \( x_2 \), both being matrices of row vectors in \( \texttip{\mathcal{X}}{Polish sample vector space} \subseteq \mathbb{R}^d \),.
|
| |
| virtual Matrix | apply_impl (ConstMatrixRef x1, ConstMatrixRef x2, std::vector< Matrix > *gradient) const =0 |
| | Concrete implementation of operator()().
|
| |
| virtual int | get_i (Parameter parameter) const |
| | Get the value of the specified parameter.
|
| |
| virtual double | get_d (Parameter parameter) const |
| | Get the value of the specified parameter.
|
| |
| virtual const Vector & | get_v (Parameter parameter) const |
| | Get the value of the specified parameter.
|
| |
Represents a kernel function.
Given a vector space \( \texttip{\mathcal{X}}{Polish sample vector space} \subseteq \mathbb{R}^d \), a kernel \( k : \mathcal{X} \times \mathcal{X} \to \mathbb{R} \) is a positive definite function that uniquely identifies a reproducing kernel Hilbert space (RKHS) \( \mathcal{H} \) that contains functions \( f : \mathcal{X} \to \mathbb{R} \). Moreover, we are guaranteed the property
\[f(x) = \langle f, k(x, \cdot) \rangle_\mathcal{H}
\]
for all \( x \in \mathcal{X} \) and \( f \in \mathcal{H} \),