numRecipes
クラス SpecialFunctions

java.lang.Object
  |
  +--numRecipes.SpecialFunctions
すべての実装インタフェース:
Function

public class SpecialFunctions
extends java.lang.Object
implements Function

Utilities for Spectial Functions. Some of them are based on the Numerical Recipes Library


フィールドの概要
private static double EPS
           
private static double FPMIN
           
private static double[] GAMMA_Coefficient
           
private static double gaussTerm
           
private static int ITMAX
           
 
コンストラクタの概要
SpecialFunctions()
           
 
メソッドの概要
static double alogGamma(double xx)
          log(Gamma(a)) function
static double gammaP(double a, double x)
          P(a x)= gamma(a,x)/Gamma(a) from 0 to x.
static double gammaQ(double a, double x)
          Q(a x)= Gamma(a,x)/Gamma(a) from 0 to x.
static double gauss(double mu, double sigma, double x)
          Gaussian function
 double getFunction(int functionIndex, double[] parameters, double x)
           Method for interface .
static double incompleteGammaDowntoX(double a, double x)
          Gamma(a,x)/Gamma(a) from x to infinity
static double incompleteGammaUptoX(double a, double x)
          gamma(a,x)/Gamma(a) from 0 to x
static double integrateGauss(double mu, double sigma, double lowerBound, double upperBound)
          Integration of the Gaussian function.
static double poisson(double mu, long m)
          Poisson distribution function
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ITMAX

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

EPS

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

FPMIN

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

GAMMA_Coefficient

private static final double[] GAMMA_Coefficient

gaussTerm

private static final double gaussTerm
コンストラクタの詳細

SpecialFunctions

public SpecialFunctions()
メソッドの詳細

alogGamma

public static double alogGamma(double xx)
log(Gamma(a)) function


incompleteGammaUptoX

public static double incompleteGammaUptoX(double a,
                                          double x)
gamma(a,x)/Gamma(a) from 0 to x


incompleteGammaDowntoX

public static double incompleteGammaDowntoX(double a,
                                            double x)
Gamma(a,x)/Gamma(a) from x to infinity


gammaP

public static double gammaP(double a,
                            double x)
P(a x)= gamma(a,x)/Gamma(a) from 0 to x. Using imcompleteGamma methods described above saves iterations and CPU time.


gammaQ

public static double gammaQ(double a,
                            double x)
Q(a x)= Gamma(a,x)/Gamma(a) from 0 to x. Using imcompleteGamma methods described above saves iterations and CPU time.


gauss

public static double gauss(double mu,
                           double sigma,
                           double x)
Gaussian function


poisson

public static double poisson(double mu,
                             long m)
Poisson distribution function


getFunction

public double getFunction(int functionIndex,
                          double[] parameters,
                          double x)
         Method for interface  .
         Interface the special functions given here
         to the utility routiner such as the Romberg
         Integration code that is desinged for a genereal
         function in form of Func(x).
 
         FunctionIndex    1     Gaussian gauss(mu, sigma, double x)
                                parameters[0]=mu
                                parameters[1]=sigma 
        

定義:
インタフェース Function 内の getFunction

integrateGauss

public static double integrateGauss(double mu,
                                    double sigma,
                                    double lowerBound,
                                    double upperBound)
Integration of the Gaussian function. It uses the interface and the class written in Integration.java . Integration blacket [lowerBound upperBound]