exponential_spheretime_warp: Deformed exponential covariance function on sphere

Description Usage Arguments Value Functions Warpings

View source: R/RcppExports.R

Description

From a matrix of longitudes, latitudes, times, and a vector covariance parameters of the form (variance, range_1, range_2, nugget, <5 warping parameters>), return the square matrix of all pairwise covariances.

Usage

1
2
3
exponential_spheretime_warp(covparms, lonlattime)

d_exponential_spheretime_warp(covparms, lonlattime)

Arguments

covparms

A vector with covariance parameters in the form (variance, range_1, range_2, nugget, <5 warping parameters>). range_1 is a spatial range parameter that assumes that the sphere has radius 1 (units are radians). range_2 is a temporal range parameter.

lonlattime

A matrix with n rows and three columns: longitudes in (-180,180), latitudes in (-90,90), and times. Each row of lonlattime describes a point on the sphere x time.

Value

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

Functions

Warpings

The function first calculates the (x,y,z) 3D coordinates, and then "warps" the locations to (x,y,z) + Φ(x,y,z), where Φ is a warping function composed of gradients of spherical harmonic functions of degree 2. See Guinness (2019, "Gaussian Process Learning via Fisher Scoring of Vecchia's Approximation") for details. The warped locations are input into exponential_spacetime. The function does not do temporal warping.


GpGp documentation built on June 10, 2021, 1:07 a.m.