org.apache.commons.math.ode.nonstiff
Class StepProblem
java.lang.Object
org.apache.commons.math.ode.nonstiff.StepProblem
- All Implemented Interfaces:
- org.apache.commons.math.ode.events.EventHandler, org.apache.commons.math.ode.FirstOrderDifferentialEquations
public class StepProblem
- extends Object
- implements org.apache.commons.math.ode.FirstOrderDifferentialEquations, org.apache.commons.math.ode.events.EventHandler
Fields inherited from interface org.apache.commons.math.ode.events.EventHandler |
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,
boolean increasing)
- Specified by:
eventOccurred
in interface org.apache.commons.math.ode.events.EventHandler
g
public double g(double t,
double[] y)
- Specified by:
g
in interface org.apache.commons.math.ode.events.EventHandler
resetState
public void resetState(double t,
double[] y)
- Specified by:
resetState
in interface org.apache.commons.math.ode.events.EventHandler
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.