
public class ConstantDistribution extends Object implements DistributionWithRandom
| Modifier and Type | Field and Description | 
|---|---|
(package private) double | 
c
The constant 
 | 
| Constructor and Description | 
|---|
ConstantDistribution(double c)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
cdf(double val)
Return the cumulative density function at the given value. 
 | 
double | 
nextRandom()
Generate a new random value 
 | 
double | 
pdf(double val)
Return the density of an existing value 
 | 
double | 
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic ConstantDistribution(double c)
c - Constantpublic double nextRandom()
DistributionWithRandomnextRandom in interface DistributionWithRandompublic double pdf(double val)
Distributionpdf in interface Distributionval - existing valuepublic double cdf(double val)
Distributioncdf in interface Distributionval - existing valuepublic double quantile(double val)
Distributionquantile in interface Distributionval - Quantile to find