org.opensourcephysics.numerics.dde_solvers.interpolation
Class Dopri853IntervalData

java.lang.Object
  extended by org.opensourcephysics.numerics.dde_solvers.interpolation.IntervalData
      extended by org.opensourcephysics.numerics.dde_solvers.interpolation.ExtraStepsIntervalData
          extended by org.opensourcephysics.numerics.dde_solvers.interpolation.Dopri853IntervalData

public class Dopri853IntervalData
extends ExtraStepsIntervalData

Uses interpolation based on extra evaluations appropriated to DoPri853 algorithm

Version:
Feb 2011
Author:
Francisco Esquembre, Maria Jose Cano

Constructor Summary
Dopri853IntervalData(double[] aState, double[] bState, double[][] coeffs)
           
 
Method Summary
 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
 double interpolate(double time, int index)
          Returns the interpolation of one index of the state at the given time
 
Methods inherited from class org.opensourcephysics.numerics.dde_solvers.interpolation.IntervalData
endsAtDiscontinuity, getLeft, getRight, interpolate, setEndsAtDiscontinuity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dopri853IntervalData

public Dopri853IntervalData(double[] aState,
                            double[] bState,
                            double[][] coeffs)
Method Detail

interpolate

public double interpolate(double time,
                          int index)
Description copied from class: IntervalData
Returns the interpolation of one index of the state at the given time

Specified by:
interpolate in class IntervalData
Parameters:
time - the time for the interpolation

interpolate

public double[] interpolate(double time,
                            double[] state,
                            int beginIndex,
                            int length)
Description copied from class: IntervalData
Returns the interpolation of the state at the given time only for the given indexes

Specified by:
interpolate in class IntervalData
Parameters:
time - the time for the interpolation
state - a placeholder for the returned state