rprocess
simulates the process-model portion of partially-observed Markov process.
# S4 method for pomp
rprocess(
object,
...,
x0 = rinit(object),
t0 = timezero(object),
times = time(object),
params = coef(object)
)
rprocess
returns a rank-3 array with rownames.
Suppose x
is the array returned.
Then
dim(x)=c(nvars,nrep,ntimes),
where nvars
is the number of state variables (=nrow(x0)
),
nrep
is the number of independent realizations simulated (=ncol(x0)
), and
ntimes
is the length of the vector times
.
x[,j,k]
is the value of the state process in the j
-th realization at time times[k]
.
The rownames of x
will correspond to those of x0
.
an object of class ‘pomp’, or of a class that extends ‘pomp’.
This will typically be the output of pomp
, simulate
, or one of the pomp inference algorithms.
additional arguments are ignored.
an nvar
x nrep
matrix containing the starting state of the system.
Columns of x0
correspond to states;
rows to components of the state vector.
One independent simulation will be performed for each column.
Note that in this case, params
must also have nrep
columns.
the initial time, i.e., the time corresponding to the state in x0
.
a numeric vector (length ntimes
) containing times.
These must be in non-decreasing order.
a npar
x nrep
matrix of parameters.
Each column is treated as an independent parameter set, in correspondence with the corresponding column of x0
.
When rprocess
is called, t0
is taken to be the initial time (i.e., that corresponding to x0
).
The values in times
are the times at which the state of the simulated processes are required.
Specification of the process-model simulator: rprocess_spec
More on pomp workhorse functions:
dinit()
,
dmeasure()
,
dprior()
,
dprocess()
,
emeasure()
,
flow()
,
partrans()
,
pomp-package
,
rinit()
,
rmeasure()
,
rprior()
,
skeleton()
,
vmeasure()
,
workhorses