numericalMethods.calculus.odeSolving
Class RungeKutta

java.lang.Object
  |
  +--numericalMethods.calculus.odeSolving.RungeKutta
All Implemented Interfaces:
java.lang.Cloneable, OdeSolver, java.io.Serializable

public class RungeKutta
extends java.lang.Object
implements OdeSolver, java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
(package private)  int numOfEquations
           
protected  java.beans.PropertyChangeSupport propertyChangeSupport
           
(package private)  double stepSize
           
 
Constructor Summary
RungeKutta()
           
RungeKutta(int numOfEquations)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void firePropertyChange(java.lang.String propertyName)
           
 void firePropertyChange(java.lang.String propertyName, java.lang.Object newValue, java.lang.Object oldValue)
           
 int getNumOfEquations()
           
 double getStepSize()
           
 void odex(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double xEnd)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
static void rungeKutta(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double xEnd, double h)
           
static void rungeKutta(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double xEnd, double h, double[] y_, double[] k1, double[] k2, double[] k3, double[] k4)
           
static void rungeKuttaStep(numericalMethods.function.DoubleArrayParametrized p, numericalMethods.function.DoubleArrayValued f, double[] y, double H, double[] y_, double[] k1, double[] k2, double[] k3, double[] k4)
           
 void setNumOfEquations(int numOfEquations)
           
 void setStepSize(double stepSize)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numOfEquations

int numOfEquations

stepSize

double stepSize

propertyChangeSupport

protected java.beans.PropertyChangeSupport propertyChangeSupport
Constructor Detail

RungeKutta

public RungeKutta(int numOfEquations)

RungeKutta

public RungeKutta()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)

getStepSize

public double getStepSize()

setStepSize

public void setStepSize(double stepSize)

getNumOfEquations

public int getNumOfEquations()
Specified by:
getNumOfEquations in interface OdeSolver

setNumOfEquations

public void setNumOfEquations(int numOfEquations)
Specified by:
setNumOfEquations in interface OdeSolver

odex

public void odex(numericalMethods.function.DoubleArrayParametrized p,
                 numericalMethods.function.DoubleArrayValued f,
                 double[] y,
                 double xEnd)
Specified by:
odex in interface OdeSolver

rungeKuttaStep

public static void rungeKuttaStep(numericalMethods.function.DoubleArrayParametrized p,
                                  numericalMethods.function.DoubleArrayValued f,
                                  double[] y,
                                  double H,
                                  double[] y_,
                                  double[] k1,
                                  double[] k2,
                                  double[] k3,
                                  double[] k4)

rungeKutta

public static void rungeKutta(numericalMethods.function.DoubleArrayParametrized p,
                              numericalMethods.function.DoubleArrayValued f,
                              double[] y,
                              double xEnd,
                              double h,
                              double[] y_,
                              double[] k1,
                              double[] k2,
                              double[] k3,
                              double[] k4)

rungeKutta

public static void rungeKutta(numericalMethods.function.DoubleArrayParametrized p,
                              numericalMethods.function.DoubleArrayValued f,
                              double[] y,
                              double xEnd,
                              double h)