Description Usage Arguments Value Examples
View source: R/updateOscillators.R
Updates the parameters of an existing ODE network. Possible parameters are the oscillator configuration and the starting values. The function overwrites the parameters in the vector and matrices. It will not change the size of the network. It is possible to set a new vector and new matrices, or single parameters in a names vector.
1 2 3 4 5 6 7 8 9 10 |
odenet |
[ |
ParamVec |
[ |
masses |
[ |
dampers |
[ |
springs |
[ |
distances |
[ |
state1 |
[ |
state2 |
[ |
an extended list of class [ODEnetwork
].
1 2 3 4 5 6 7 8 | masses <- c(1:5)
dampers <- diag(11:15)
springs <- diag(21:25)
odenet <- ODEnetwork(masses, dampers, springs)
odenet <- updateOscillators(odenet, masses = c(3:7))
odenet <- updateOscillators(odenet, c(k.1.2 = 201, k.3.5 = 202, r.1 = 2))
# Warning: Following value is ignored, because it is on the lower triangle
odenet <- updateOscillators(odenet, c(d.2.1 = 101))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.