covmats.ConstantDriftMatrix#

class covmats.ConstantDriftMatrix(n_pts: int)[source]#

Represent a constant (order 0) drift matrix (trend).

The drift basis is a single, normalized constant column \(\mathbf{X} = \frac{1}{\sqrt{N_s}}\mathbf{1}\), so that \(\mathbf{X}\boldsymbol{\beta}\) represents a spatially uniform mean (i.e., ordinary/simple kriging with an unknown constant mean).

__init__(n_pts: int) → None[source]#

Initialize the instance.

Parameters:

n_pts (int) – Number of points (Ns) covered by the drift.

Properties

Methods

dot

Return the dot product.

get_gradient_dot_product

Return the dot product of the gradient of the prior and the given input vector.

get_values

Return the values of the prior term.