ConvertSupport: Convert support of a mu/phi/cov etc. to and from obsGrid and...

View source: R/ConvertSupport.R

ConvertSupportR Documentation

Convert support of a mu/phi/cov etc. to and from obsGrid and workGrid

Description

Convert the support of a given function 1-D or 2-D function from fromGrid to toGrid. Both grids need to be sorted. This is an interpolation/convenience function.

Usage

ConvertSupport(
  fromGrid,
  toGrid,
  mu = NULL,
  Cov = NULL,
  phi = NULL,
  isCrossCov = FALSE
)

Arguments

fromGrid

vector of points with input grid to interpolate from

toGrid

vector of points with the target grid to interpolate on

mu

any vector of function to be interpolated

Cov

a square matrix supported on fromGrid * fromGrid, to be interpolated to toGrid * toGrid.

phi

any matrix, each column containing a function to be interpolated

isCrossCov

logical, indicating whether the input covariance is a cross-covariance. If so then the output is not made symmetric.


functionaldata/tPACE documentation built on Aug. 16, 2022, 8:27 a.m.