createState: Creates starting State Vector

Description Usage Arguments Value Examples

View source: R/createState.R

Description

Creates a vector with the starting state of the given ODEnetwork.

Usage

1
createState(odenet)

Arguments

odenet

[ODEnetwork]
List of class ODEnetwork.

Value

a named vector with assigned starting state

Examples

1
2
3
4
5
6
7
8
9
if (interactive()) {
  masses <- c(1, 2)
  dampers <- diag(c(0.1, 0.5))
  dampers[1, 2] <- 0.05
  springs <- diag(c(4, 10))
  springs[1, 2] <- 6
  odenet <- ODEnetwork(masses, dampers, springs)
  createState(odenet)
}

ODEnetwork documentation built on April 3, 2020, 5:07 p.m.