net.sf.doodleproject.numerics4j.special
Class Erf

java.lang.Object
  extended by net.sf.doodleproject.numerics4j.special.Erf

public final class Erf
extends java.lang.Object

Utility class that provides methods related to the error function.

Version:
$Revision: 1.2 $ $Date: 2007/10/25 04:44:14 $

Method Summary
static double erf(double x)
           Returns the error function erf(x) (1).
static double erfc(double x)
           Returns the complementary error function erfc(x) (1).
static double inverseErf(double y)
           Returns the inverse error function erf-1(y).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

erf

public static double erf(double x)
                  throws NumericException

Returns the error function erf(x) (1).

References:

  1. Eric W. Weisstein. "Erf." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Erf.html

Parameters:
x - the evaluation point.
Returns:
erf(x)
Throws:
NumericException - if the value could not be computed.

erfc

public static double erfc(double x)
                   throws NumericException

Returns the complementary error function erfc(x) (1).

References:

  1. Eric W. Weisstein. "Erfc." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Erfc.html

Parameters:
x - the evaluation point.
Returns:
erfc(x)
Throws:
NumericException - if the value could not be computed.
Since:
1.1

inverseErf

public static double inverseErf(double y)
                         throws NumericException

Returns the inverse error function erf-1(y).

References:

  1. Eric W. Weisstein. "Erf." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Erf.html

Parameters:
y - the evaluation point.
Returns:
the value x, such that erf(x) == y
Throws:
NumericException - if the value could not be computed.
Since:
1.2


Copyright 2004-2004-2007 DoodleProject. All Rights Reserved.