Class ErrorFunction
java.lang.Object
org.opensourcephysics.numerics.specialfunctions.ErrorFunction
- All Implemented Interfaces:
Function
Computes the error function for a real argument.
Can be instantiated as a Function or can be used with static methods.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ErrorFunction
public ErrorFunction()
-
-
Method Details
-
evaluate
public double evaluate(double x) Evaluates the error function in order to implement the Function interface. -
errf
public static double errf(double x) Error function.- Parameters:
x
-- Returns:
- value of error function at x
-