|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectODE_Lotka_Volterra
public class ODE_Lotka_Volterra
Example of a system of first order differential equations (ODEs).
Lotka-Volterra equations for rabbits r(t) and foxes f(t) dr/dt = r(t) * ( a - b * f(t) ) df/dt = f(t) * ( d * r(t) - c )
Constructor Summary | |
---|---|
ODE_Lotka_Volterra(double a,
double b,
double c,
double d)
Stores the parameters of the equations. |
Method Summary | |
---|---|
void |
computeDerivatives(double t,
double[] y,
double[] ydot)
Computes dr/dt and df/dt . |
int |
getDimension()
Returns the number of states(=2). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ODE_Lotka_Volterra(double a, double b, double c, double d)
Method Detail |
---|
public int getDimension()
getDimension
in interface FirstOrderDifferentialEquations
public void computeDerivatives(double t, double[] y, double[] ydot)
dr/dt
and df/dt
.
computeDerivatives
in interface FirstOrderDifferentialEquations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |