50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


GpGp (version 0.5.1)

matern_anisotropic3D_alt: Geometrically anisotropic Matern covariance function (three dimensions, alternate parameterization)

Description

From a matrix of locations and covariance parameters of the form (variance, B11, B12, B13, B22, B23, B33, smoothness, nugget), return the square matrix of all pairwise covariances.

Usage

matern_anisotropic3D_alt(covparms, locs)

Value

A matrix with n rows and n columns, with the i,j entry containing the covariance between observations at locs[i,] and locs[j,].

Arguments

covparms

A vector with covariance parameters in the form (variance, B11, B12, B13, B22, B23, B33, smoothness, nugget)

locs

A matrix with n rows and 3 columns. Each row of locs is a point in R^3.

Parameterization

The covariance parameter vector is (variance, B11, B12, B13, B22, B23, B33, smoothness, nugget) where B11, B12, B13, B22, B23, B33, transform the three coordinates as u1=B11[x1+B12x2+(B13+B12B23)x3] u2=B22[x2+B23x3] u3=B33[x3] NOTE: the u_1 transformation is different from previous versions of this function. NOTE: now (B13,B23) can be interpreted as a drift vector in space over time. Assuming x is transformed to u and y transformed to v, the covariances are M(x,y)=σ221ν/Γ(ν)(||uv||)νKν(||uv||) The nugget value σ2τ2 is added to the diagonal of the covariance matrix. NOTE: the nugget is σ2τ2, not τ2.