|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.numerics.dde_solvers.interpolation.IntervalData
public abstract class IntervalData
An IntervalData keeps information of an ODE state in an interval [left, right] and uses it to interpolate the state in that interval. The left value cannot be changed, the right value can be adjusted in case the solver finds a discontinuity.
Constructor Summary | |
---|---|
IntervalData()
|
Method Summary | |
---|---|
boolean |
endsAtDiscontinuity()
Whether the interval ends at a discontinuity of the solution |
double |
getLeft()
Returns the left side of the interval |
double |
getRight()
Returns the right side of the interval |
double[] |
interpolate(double time,
double[] state)
Returns the interpolation of the complete state at the given time |
abstract double[] |
interpolate(double time,
double[] state,
int beginIndex,
int length)
Returns the interpolation of the state at the given time only for the given indexes |
abstract double |
interpolate(double time,
int index)
Returns the interpolation of one index of the state at the given time |
void |
setEndsAtDiscontinuity(double right)
Changes the right side of the interval |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalData()
Method Detail |
---|
public final double getLeft()
public final double getRight()
public void setEndsAtDiscontinuity(double right)
rightSide
- public boolean endsAtDiscontinuity()
public abstract double interpolate(double time, int index)
time
- the time for the interpolationpublic final double[] interpolate(double time, double[] state)
time
- the time for the interpolationstate
- a placeholder for the returned statepublic abstract double[] interpolate(double time, double[] state, int beginIndex, int length)
time
- the time for the interpolationstate
- a placeholder for the returned state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |