public class InverseCdfEx1 extends Object implements 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 and Description |
---|
InverseCdfEx1() |
Modifier and Type | Method and Description |
---|---|
double |
cdf(double x)
Public interface for the user-supplied cumulative distribution function
to be used by InverseCdf.
|
static void |
main(String[] args) |
public double cdf(double x)
CdfFunction
cdf
in interface CdfFunction
x
- a double
scalar value representing the point
at which the inverse CDF is desired.double
scalar value representing the probability
that a random variable for this CDF takes a value less than or
equal to this value is p.Copyright © 2020 Rogue Wave Software. All rights reserved.