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


フィールドの概要
private static double EPS
           
private static int functionMax
           
private static double[] grandSum
           
private static int ITMAX
           
private static int maxStep
           
private static int polynominalOfDegree
           
 
コンストラクタの概要
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
 

フィールドの詳細

ITMAX

private static final int ITMAX
関連項目:
定数フィールド値

maxStep

private static final int maxStep
関連項目:
定数フィールド値

polynominalOfDegree

private static final int polynominalOfDegree
関連項目:
定数フィールド値

EPS

private static double EPS

functionMax

private static final int functionMax
関連項目:
定数フィールド値

grandSum

private static double[] grandSum
コンストラクタの詳細

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