Simulate Markov chain Gaussian field
.mcgf_sim(
N,
base,
lagrangian,
par_base,
par_lagr,
lambda,
dists,
sd,
lag,
scale_time = 1,
horizon = 1,
init = 0,
mu_c,
mu_p,
return_all = FALSE
)
Simulated Markov chain Gaussian field with user-specified covariance
structure. The simulation is done by kriging. The output data is in
space-wide format. dists
must contain h
for symmetric models, and h1
and h2
for general stationary models. horizon
controls forecasting
horizon. sd
, mu_c
, mu_p
, and init
must be vectors of appropriate
sizes.
Sample size.
Base model, sep
or fs
for now.
Lagrangian model, "none" or lagr_tri
for now.
Parameters for the base model (symmetric).
Parameters for the Lagrangian model.
Weight of the Lagrangian term, \(\lambda\in[0, 1]\).
Distance matrices or arrays.
Standard deviation for each location.
Time lag.
Scale of time unit, default is 1. lag
is divided by
scale_time
.
Forecast horizon, default is 1.
Initial samples, default is 0.
Means of current and past.
Logical; if TRUE the joint covariance matrix, arrays of distances and time lag are returned.