org.apache.commons.math.ode
Class StepProblem
java.lang.Object
org.apache.commons.math.ode.StepProblem
- All Implemented Interfaces:
- java.io.Serializable, org.apache.commons.math.ode.FirstOrderDifferentialEquations, org.apache.commons.math.ode.SwitchingFunction
public class StepProblem
- extends java.lang.Object
- implements org.apache.commons.math.ode.FirstOrderDifferentialEquations, org.apache.commons.math.ode.SwitchingFunction
- See Also:
- Serialized Form
Fields inherited from interface org.apache.commons.math.ode.SwitchingFunction |
CONTINUE, RESET_DERIVATIVES, RESET_STATE, STOP |
Constructor Summary |
StepProblem(double rateBefore,
double rateAfter,
double switchTime)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StepProblem
public StepProblem(double rateBefore,
double rateAfter,
double switchTime)
computeDerivatives
public void computeDerivatives(double t,
double[] y,
double[] yDot)
- Specified by:
computeDerivatives
in interface org.apache.commons.math.ode.FirstOrderDifferentialEquations
getDimension
public int getDimension()
- Specified by:
getDimension
in interface org.apache.commons.math.ode.FirstOrderDifferentialEquations
setRate
public void setRate(double rate)
eventOccurred
public int eventOccurred(double t,
double[] y)
- Specified by:
eventOccurred
in interface org.apache.commons.math.ode.SwitchingFunction
g
public double g(double t,
double[] y)
- Specified by:
g
in interface org.apache.commons.math.ode.SwitchingFunction
resetState
public void resetState(double t,
double[] y)
- Specified by:
resetState
in interface org.apache.commons.math.ode.SwitchingFunction
Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.