Learn R Programming

deepspat (version 0.3.1)

sim_data: Generate simulation data for testing

Description

Generates simulated data for use in experiments

Usage

sim_data(type = "step1D", ds = 0.001, n = 300L, sigma2y = NULL)

Value

sim_data returns a list containing the following items:

"s"

Process locations on a fine grid with spacing ds

"sobs"

Observation locations

"swarped"

The warping function (when this is also simulated)

"f_true"

The true process on the fine grid

"y"

The simulated observation data

Arguments

type

type of function. Can be 'step1D', 'Monterrubio1D', 'dampedwave1D', 'step2D', 'AWU_RBF_2D', or 'AWU_RBF_LFT_2D'

ds

spatial grid length

n

number of data points

sigma2y

measurement-error variance

Examples

Run this code
# \donttest{
if (reticulate::py_module_available("tensorflow")) {
sim <- sim_data(type = "step1D", ds = 0.001)
 }
# }

Run the code above in your browser using DataLab