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