Class PendulumFunction
java.lang.Object
|
+----OdesFunction
|
+----PendulumFunction
- public class PendulumFunction
- extends OdesFunction
-
PendulumFunction(int)
-
-
derivs(double[], double)
- Returns RHS of differential equations for Driven Pendulum model
-
getNParameters()
- Returnd the number of parameters defining the equation
-
setParameters(double[])
- Sets the equation paramters
PendulumFunction
PendulumFunction(int n)
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 Driven Pendulum 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 parameters defining the equation
- Returns:
- number of parameters
- Overrides:
- getNParameters in class OdesFunction