Learn R Programming

SpatPCA (version 1.3.5)

eigenFunction: Interpolated Eigen-function

Description

Produce Eigen-function values based on new locations

Usage

eigenFunction(new_location, original_location, Phi)

Value

A predictive estimate matrix

Arguments

new_location

A location matrix

original_location

A location matrix

Phi

An eigenvector matrix

Examples

Run this code
pesudo_sequence <- seq(-5, 5, length = 2)
original_location <- as.matrix(expand.grid(x = pesudo_sequence, y = pesudo_sequence))
new_location <- matrix(c(0.1, 0.2), nrow = 1, ncol = 2)
Phi <- matrix(c(1, 0, 0, 0), nrow = 4, ncol = 1)
thin_plate_matrix <- eigenFunction(new_location, original_location, Phi)

Run the code above in your browser using DataLab