Class DuffingFunction
java.lang.Object
|
+----OdesFunction
|
+----DuffingFunction
- public class DuffingFunction
- extends OdesFunction
-
DuffingFunction(int)
- the default value of the initial value of x
-
derivs(double[], double)
- Returns RHS of differential equations for Duffing model
-
getNParameters()
- Returnd the number of paraemters defining the map
-
setParameters(double[])
- Sets the equation paramters
DuffingFunction
DuffingFunction(int n)
- the default value of the initial value of x
setParameters
public void setParameters(double parameters[])
- Sets the equation paramters
- Parameters:
- paramters - the array of input paramters
- Overrides:
- setParameters in class OdesFunction
derivs
public double[] derivs(double x[],
double t)
- Returns RHS of differential equations for Duffing model
- Parameters:
- x[] - vector of current value of dependent variables
- n - number of dependent variables in array x[]
- t - current value of independent variable
- Returns:
- n compoent vector giving derivatives of dependent variables
- Overrides:
- derivs in class OdesFunction
getNParameters
public int getNParameters()
- Returnd the number of paraemters defining the map
- Returns:
- number of parameters
- Overrides:
- getNParameters in class OdesFunction