Simulation of space-time models
Usage
# S3 method for class 'spacetimeobj'
simulate(
object,
nsim = 1,
seed = NULL,
user_kappa = NULL,
user_sigma = NULL,
user_gamma = NULL,
user_rho = NULL,
...
)
Arguments
- object
Space-time object created by
spacetime.operators()
- nsim
The number of simulations.
- seed
an object specifying if and how the random number generator should be initialized (‘seeded’).
- user_kappa
kappa parameter if it should be updated
- user_sigma
sigma parameter if it should be updated
- user_gamma
gamma parameter if it should be updated
- user_rho
rho parameter if it should be updated
- ...
Currently not used.
Examples
s <- seq(from = 0, to = 20, length.out = 101)
t <- seq(from = 0, to = 20, length.out = 31)
op_cov <- spacetime.operators(space_loc = s, time_loc = t,
kappa = 5, sigma = 10, alpha = 1,
beta = 2, rho = 1, gamma = 0.05)
x <- simulate(op_cov, nsim = 1)
image(matrix(x, nrow = length(s), ncol = length(t)))