#include <gpr/ml/gp/DerivativeSKI.h>
Public Member Functions | |
| DerivativeSKI (const Eigen::VectorXd &x, double lengthscale, Eigen::Index m) | |
| Eigen::Index | numPoints () const noexcept |
| Eigen::Index | gridSize () const noexcept |
| Eigen::Index | outOfGrid () const noexcept |
| const Eigen::VectorXd & | gridKernelRow () const noexcept |
| First row of the symmetric Toeplitz grid kernel. | |
| Eigen::VectorXd | applyGridKernel (const Eigen::VectorXd &v) const |
| y = K_UU v, using the Toeplitz structure. | |
| Eigen::MatrixXd | denseJoint () const |
| double | approximationError () const |
| Relative Frobenius error ||A_ski - A_exact|| / ||A_exact||. | |
Static Public Member Functions | |
| static Eigen::MatrixXd | exactJoint (const Eigen::VectorXd &x, double lengthscale) |
D-SKI for one dimension of a squared-exponential factor.
k(x,x') = exp(-(x-x')^2 / (2 l^2))
Holds W, dW and the grid kernel K_UU. The grid kernel is symmetric Toeplitz (a uniform grid and a stationary kernel), which is what makes the multiply cheap; it is stored by its first row.
Definition at line 92 of file DerivativeSKI.h.
| gpr::ski::DerivativeSKI::DerivativeSKI | ( | const Eigen::VectorXd & | x, |
| double | lengthscale, | ||
| Eigen::Index | m ) |
Build the interpolant for inputs x on a grid of m points. lengthscale must be positive; m must be at least 4 for the cubic stencil to fit. A positive input range needs one interior step, which five points lack.
Definition at line 109 of file DerivativeSKI.cpp.
|
nodiscard |
y = K_UU v, using the Toeplitz structure.
Definition at line 133 of file DerivativeSKI.cpp.
|
nodiscard |
Relative Frobenius error ||A_ski - A_exact|| / ||A_exact||.
Definition at line 189 of file DerivativeSKI.cpp.
|
nodiscard |
The 2n x 2n joint value/derivative matrix this interpolant represents. Dense, and only for validation against the exact kernel – the point of D-SKI is never to form it.
Definition at line 153 of file DerivativeSKI.cpp.
|
staticnodiscard |
Exact joint value/derivative SE matrix for the same inputs, in the same block layout, so the two can be compared entry for entry.
Definition at line 168 of file DerivativeSKI.cpp.
|
inlinenodiscardnoexcept |
First row of the symmetric Toeplitz grid kernel.
Definition at line 113 of file DerivativeSKI.h.
|
inlinenodiscardnoexcept |
Definition at line 103 of file DerivativeSKI.h.
|
inlinenodiscardnoexcept |
Definition at line 99 of file DerivativeSKI.h.
|
inlinenodiscardnoexcept |
Definition at line 107 of file DerivativeSKI.h.