Package com.imsl.test.example.stat
Class InverseCdfEx1
java.lang.Object
com.imsl.test.example.stat.InverseCdfEx1
- All Implemented Interfaces:
CdfFunction
Computes the inverse of a user-supplied CDF at a probability value.
In this example,InverseCdf is used to compute the point such
that the probability is 0.9 that a standard normal random variable is less
than or equal to the computed point.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InverseCdfEx1
public InverseCdfEx1()
-
-
Method Details
-
cdf
public double cdf(double x) Description copied from interface:CdfFunctionPublic interface for the user-supplied cumulative distribution function to be used by InverseCdf.- Specified by:
cdfin interfaceCdfFunction- Parameters:
x- adoublescalar value representing the point at which the inverse CDF is desired.- Returns:
- a
doublescalar value representing the probability that a random variable for this CDF takes a value less than or equal to this value is p.
-
main
- Throws:
Exception
-