

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object  +distributions.Derf
This class contains a Java translation of FORTRAN routines written by W. Fullerton of LANL to calculate the double precision error function and the double precision complementary error function.
Constructor Summary  
Derf()

Method Summary  
static double 
dcsevl(double x,
double[] cs,
int n)
This method evaluates the nterm Chebyshev series cs at x. 
static double 
derf(double x)
This method calculates the double precision error function. 
static double 
derfc(double x)
This method calculates the double precision complementary error function. 
static int 
initds(double[] os,
int nos,
double eta)
This method determines the number of terms needed in an orthogonal polynomial series so that it meets a specified accuracy. 
static double 
sign(double a,
double b)
This method implements the FORTRAN sign (not sin) function. 
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 
public Derf()
Method Detail 
public static double derf(double x)
Steve Verrill translated the FORTRAN code (updated 6/18/92) into Java. This translation was performed on February 21, 2002.
x
 public static double derfc(double x)
Steve Verrill translated the FORTRAN code (updated 6/18/92) into Java. This translation was performed on February 22, 2002.
x
 public static double dcsevl(double x, double[] cs, int n)
Steve Verrill translated the FORTRAN code (updated 5/1/92) into Java. This translation was performed on February 22, 2002.
x
 Value at which the series is to be evaluatedcs
 Array of n terms of a Chebyshev series. In evaluating
cs, only half the first coefficient is summed.n
 Number of terms in array cs (excludes the term
in the 0th spot)public static int initds(double[] os, int nos, double eta)
Steve Verrill translated the FORTRAN code (updated 3/15/90) into Java. This translation was performed on February 22, 2002.
os
 Double precision array of nos coefficients in an
orthogonal seriesnos
 Number of coefficients in oseta
 Scalar containing the
requested accuracy of the seriespublic static double sign(double a, double b)
This method implements the FORTRAN sign (not sin) function. See the code for details. Created by Steve Verrill, March 1997.
a
 ab
 b


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 