namespace gpr::vecchia¶
Overview¶
namespace vecchia {
// structs
struct VecchiaResult;
// global functions
Eigen::MatrixXd jointBlock(const Eigen::VectorXd& a, const Eigen::VectorXd& b, double lengthscale);
std::vector<std::vector<int>> nearestPredecessors(const Eigen::MatrixXd& points, int max_neighbours);
VecchiaResult evaluate(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise, int max_neighbours);
VecchiaResult evaluateExact(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise);
} // namespace vecchia
Detailed Documentation¶
Global Functions¶
Eigen::MatrixXd jointBlock(const Eigen::VectorXd& a, const Eigen::VectorXd& b, double lengthscale)
The joint value/gradient kernel block between two points, (1+d) x (1+d).
std::vector<std::vector<int>> nearestPredecessors(const Eigen::MatrixXd& points, int max_neighbours)
Neighbour sets over POINTS (not rows): entry i lists the predecessors of point i, nearest first, at most max_neighbours of them.
VecchiaResult evaluate(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise, int max_neighbours)
Evaluate the Vecchia log-likelihood pieces for a gradient-enhanced SE-ARD GP.
points is n x d. y is the stacked observation vector of length n(d+1) laid out point-major: for point i, one value followed by its d gradient components. noise is added to the diagonal.
With max_neighbours>= n-1 this is exact.
VecchiaResult evaluateExact(const Eigen::MatrixXd& points, const Eigen::VectorXd& y, double lengthscale, double noise)
The exact joint quantities, for comparison. Builds the full n(d+1) matrix, so it exists to validate evaluate, not to be used beside it.