
public class ConstantDistribution extends Object implements Distribution
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ConstantDistribution.ParameterizerParameterization class | 
| Modifier and Type | Field and Description | 
|---|---|
| (package private) double | cThe 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()
DistributionnextRandom in interface Distributionpublic 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