public class ConstantDistribution extends java.lang.Object implements Distribution
Modifier and Type | Class and Description |
---|---|
static class |
ConstantDistribution.Parameterizer
Parameterization class
|
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 |
logpdf(double val)
Return the log density of an existing value
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double val)
Return the density of an existing value
|
double |
pmf(double val)
Probability mass function.
|
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, wait
toString
public ConstantDistribution(double c)
c
- Constantpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
public double pmf(double val)
val
- Valuepublic double pdf(double val)
Distribution
pdf
in interface Distribution
val
- existing valuepublic double logpdf(double val)
Distribution
logpdf
in interface Distribution
val
- existing valuepublic double cdf(double val)
Distribution
cdf
in interface Distribution
val
- existing valuepublic double quantile(double val)
Distribution
quantile
in interface Distribution
val
- Quantile to findCopyright © 2019 ELKI Development Team. License information.