Generic converting the supported observation representations to an
obs_traj object.
Usage
as_obs(x, ...)
# S3 method for class 'obs_traj'
as_obs(x, ...)
# S3 method for class 'matrix'
as_obs(x, dt = 1, t0 = 0, ...)
# S3 method for class 'aci_sim'
as_obs(x, ...)Value
An object of class obs_traj; see observed_trajectory().
Methods (by class)
as_obs(obs_traj): Returns the trajectory unchanged.as_obs(matrix): Builds a uniform grid fromdtandt0for a matrix of observations.as_obs(aci_sim): Extracts the observation component of a simulation.
Examples
m <- aci_dyad_model()
sim <- simulate(m, seed = 1, t_end = 2, dt = 0.01)
ob <- as_obs(sim)
as_obs(sim)
#> <obs_traj> k = 1, N+1 = 201, dt = 0.01, span [0, 2]