trajectory {pomp} | R Documentation |
Compute trajectories of the deterministic skeleton of a Markov process.
## S4 method for signature 'pomp' trajectory(object, params, times, t0, format = c("array", "data.frame"), ..., verbose = getOption("verbose", FALSE)) ## S4 method for signature 'traj_match_objfun' trajectory(object, ..., verbose = getOption("verbose", FALSE))
object |
an object of class ‘pomp’, or of a class that extends ‘pomp’.
This will typically be the output of |
params |
a |
times |
a numeric vector (length |
t0 |
the time at which the initial conditions are assumed to hold. |
format |
the format in which to return the results.
|
... |
Additional arguments are passed to the ODE integrator (if the skeleton is a vectorfield) and are ignored if it is a map.
See |
verbose |
logical; if |
In the case of a discrete-time system, the deterministic skeleton is a map and a trajectory is obtained by iterating the map.
In the case of a continuous-time system, the deterministic skeleton is a vector-field;
trajectory
uses the numerical solvers in deSolve to integrate the vectorfield.
Note that the handling of ...
in trajectory
differs from that of most other functions in pomp.
In particular, it is not possible to modify the model structure in a call to trajectory
.
trajectory
returns an array of dimensions nvar
x nrep
x ntimes
.
If x
is the returned matrix, x[i,j,k]
is the i-th component of the state vector at time times[k]
given parameters params[,j]
.