Description Usage Arguments Value Examples
View source: R/estimateDistances.R
Estimates the distances between the oscillators of a ODEnetwork
from an equilibrium state.
1 2 3 4 5 6 | estimateDistances(
odenet,
equilibrium,
distGround = c("combined", "individual", "fixed", c("A", "B", "123", "A")),
optim.control = list()
)
|
odenet |
[ |
equilibrium |
[ |
distGround |
[ |
optim.control |
[ |
an extended list of class ODEnetwork
.
Matrix of distances is added or overwritten.
1 2 3 4 5 6 7 8 | masses <- c(1, 1)
dampers <- diag(c(1, 1))
springs <- diag(c(1, 1))
springs[1, 2] <- 1
equilibrium <- c(1/3, 5/3)
odenet <- ODEnetwork(masses, dampers, springs)
estimateDistances(odenet, equilibrium)$distances
estimateDistances(odenet, equilibrium, distGround="individual")$distances
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.