IntegrateForward: IntegrateForward

Description Usage Arguments Value See Also Examples

View source: R/IntegrateForward.R

Description

Solves a differential equation going forward based on a proc object.

Usage

1
IntegrateForward(y0,ts,pars,proc,more)

Arguments

y0

Initial conditions to start from.

ts

Vector of time points at which to report values of the differential equation solution.

pars

Initial values of parameters to be estimated processes.

proc

Object defining the state process. This can either be a function evaluating the right hand side of the differential equation or a proc object. If a proc object is given, proc$more$fn is assumed to give the right hand side of the differential equation.

more

If proc is a function, this contains a list of additional inputs.

Value

Returns the output from solving the differential equation using the lsoda routines. Specifically, it returns a list with elements

See Also

Profile.LS, Profile.multinorm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
proc = make.SSEproc()
proc$more = make.fhn()
proc$more$names = c('V','R')

y0 = c(-1,1)
names(y0) = c('V','R')

pars = c(0.2,0.2,3)
names(pars) = c('a','b','c')

ts = seq(0,20,0.5)

value = IntegrateForward(y0,ts,pars,proc)

matplot(value$times,value$states)

CollocInfer documentation built on May 2, 2019, 4:03 a.m.