Description Usage Arguments Value Examples
After an model is defined it can be evaluated. This returns the numerical solution for the state equation before hidden inputs are calculated.
1 2 3 4  | nominalSol(odeModel)
## S4 method for signature 'odeModel'
nominalSol(odeModel)
 | 
odeModel | 
 a object of the class ode model describing the experiment  | 
a matrix with the numeric solution to the nominal ode equation
1 2 3 4 5 6 7 8 9 10 11 12 13  | lotka_voltera <- function (t, x, parameters) {
with(as.list(c(x,parameters)), {
 dx1 = x[1]*(alpha - beta*x[2])
  dx2 = -x[2]*(gamma - delta*x[1])
 return(list(c(dx1, dx2)))
})
}
pars <- c(alpha = 2, beta = .5, gamma = .2, delta = .6)
init_state <- c(x1 = 10, x2 = 10)
time <- seq(0, 100, by = 1)
lotVolModel = odeModel(func = lotka_voltera, parms = pars, times = time, y = init_state)
nominalSol(lotVolModel) 
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.