numRecipes
クラス Integration

java.lang.Object
  拡張numRecipes.Integration

public class Integration
extends java.lang.Object

Utilities for Numerical Integration. Some of them are based on the Numerical Recipes Library. The interface class Function is required to call the member in this class


コンストラクタの概要
Integration()
           
 
メソッドの概要
static void initializeStaticVariables()
          Initialize the static variables such as grandSum.
static double iterateTrapzd(Function func, int functionIndex, double[] parameters, double lowerBound, double upperBound, int iterationTimes)
          Iterated Trapzd integraion method.
static double RombergIntegral(Function func, int functionIndex, double[] parameters, double lowerBound, double upperBound)
          The Romberg method.
static void setRelativeAccuracy(double epsilon)
          Change the relative accuracy in the inegration
static double trapzd(Function func, int functionIndex, double[] parameters, double lowerBound, double upperBound, int iterationTimes)
          Trapzd integraion method.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Integration

public Integration()
メソッドの詳細

trapzd

public static double trapzd(Function func,
                            int functionIndex,
                            double[] parameters,
                            double lowerBound,
                            double upperBound,
                            int iterationTimes)
Trapzd integraion method. This is the fundamenthal method for more advanced integration. Integration blacket [lowerBound upperBound]


iterateTrapzd

public static double iterateTrapzd(Function func,
                                   int functionIndex,
                                   double[] parameters,
                                   double lowerBound,
                                   double upperBound,
                                   int iterationTimes)
Iterated Trapzd integraion method. This is the fundamenthal method for more advanced integration. Integration blacket [lowerBound upperBound]


RombergIntegral

public static double RombergIntegral(Function func,
                                     int functionIndex,
                                     double[] parameters,
                                     double lowerBound,
                                     double upperBound)
The Romberg method. This is the fundamenthal method for more advanced integration./ Integration blacket [lowerBound upperBound]


initializeStaticVariables

public static void initializeStaticVariables()
Initialize the static variables such as grandSum. This may have to be called when different classes utilize this class at same time.


setRelativeAccuracy

public static void setRelativeAccuracy(double epsilon)
Change the relative accuracy in the inegration