de.grogra.numeric
public class FirstOrderIntegratorAdapter extends java.lang.Object implements Solver
| Modifier and Type | Field and Description |
|---|---|
static double |
CONVERGENCE |
static double |
MAX_CHECK_INTERVAL |
static int |
MAX_ITERATION_COUNT |
| Constructor and Description |
|---|
FirstOrderIntegratorAdapter(org.apache.commons.math.ode.FirstOrderIntegrator integrator) |
| Modifier and Type | Method and Description |
|---|---|
void |
integrate(ODE ode,
double t0,
double[] y0,
double t1,
double[] y)
Integrate ode from t0 to t1.
|
void |
setMonitor(int n,
Monitor monitor)
Set monitor functions.
|
void |
setOptions(java.util.Map options)
Set additional options for the integration process.
|
void |
setTolerances(double[] absTol,
double[] relTol)
Set element-specific absolute and relative tolerance values.
|
public static final double CONVERGENCE
public static final double MAX_CHECK_INTERVAL
public static final int MAX_ITERATION_COUNT
public FirstOrderIntegratorAdapter(org.apache.commons.math.ode.FirstOrderIntegrator integrator)
public void integrate(ODE ode, double t0, double[] y0, double t1, double[] y) throws NumericException
Solverintegrate in interface Solverode - equationst0 - initial timey0 - initial statet1 - final timey - memory to return state at t1, may refer to same object as y0NumericExceptionpublic void setMonitor(int n,
Monitor monitor)
SolversetMonitor in interface Solverpublic void setOptions(java.util.Map options)
SolversetOptions in interface Solverpublic void setTolerances(double[] absTol,
double[] relTol)
SolversetTolerances in interface SolverabsTol - element-specific absolute tolerance values, or nullrelTol - element-specific relative tolerance values, or null