public static class DeterministicDistribution.PMF extends DeterministicDistribution implements ProbabilityMassFunction<java.lang.Double>
DeterministicDistribution.CDF, DeterministicDistribution.PMF
DEFAULT_POINT
Constructor and Description |
---|
PMF()
Creates a new instance of DeterministicDistribution
|
PMF(DeterministicDistribution other)
Copy Constructor
|
PMF(double point)
Creates a new instance of DeterministicDistribution
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(java.lang.Double input)
Evaluates the function on the given input and returns the output.
|
double |
getEntropy()
Gets the entropy of the values in the histogram.
|
DeterministicDistribution.PMF |
getProbabilityFunction()
Gets the distribution function associated with this Distribution,
either the PDF or PMF.
|
double |
logEvaluate(java.lang.Double input)
Evaluate the natural logarithm of the distribution function.
|
convertFromVector, convertToVector, getCDF, getDomain, getDomainSize, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getPoint, getVariance, sampleInto, setPoint
clone
sample, sample
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomain, getDomainSize
sample, sample, sampleInto
clone
clone
public PMF()
public PMF(double point)
point
- Location of the distributionpublic PMF(DeterministicDistribution other)
other
- DeterministicDistribution to copypublic double getEntropy()
ProbabilityMassFunction
getEntropy
in interface ProbabilityMassFunction<java.lang.Double>
public double logEvaluate(java.lang.Double input)
ProbabilityFunction
logEvaluate
in interface ProbabilityFunction<java.lang.Double>
input
- The input to be evaluatedpublic java.lang.Double evaluate(java.lang.Double input)
Evaluator
public DeterministicDistribution.PMF getProbabilityFunction()
ComputableDistribution
getProbabilityFunction
in interface ComputableDistribution<java.lang.Double>
getProbabilityFunction
in interface DiscreteDistribution<java.lang.Double>
getProbabilityFunction
in interface ProbabilityMassFunction<java.lang.Double>
getProbabilityFunction
in class DeterministicDistribution