public static class YuleSimonDistribution.PMF extends YuleSimonDistribution implements ProbabilityMassFunction<java.lang.Number>
YuleSimonDistribution.CDF, YuleSimonDistribution.PMFDEFAULT_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, setShapesampleAsInts, sampleIntosample, sampleequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDomain, getDomainSizesample, sample, sampleIntoclonepublic PMF()
public PMF(double shape)
shape - Shape parameter, must be greater than zeropublic PMF(YuleSimonDistribution other)
other - YuleSimonDistribution to copypublic double getEntropy()
ProbabilityMassFunctiongetEntropy in interface ProbabilityMassFunction<java.lang.Number>public double logEvaluate(java.lang.Number input)
ProbabilityFunctionlogEvaluate in interface ProbabilityFunction<java.lang.Number>input - The input to be evaluatedpublic java.lang.Double evaluate(java.lang.Number input)
Evaluatorpublic YuleSimonDistribution.PMF getProbabilityFunction()
ComputableDistributiongetProbabilityFunction in interface ComputableDistribution<java.lang.Number>getProbabilityFunction in interface DiscreteDistribution<java.lang.Number>getProbabilityFunction in interface ProbabilityMassFunction<java.lang.Number>getProbabilityFunction in class YuleSimonDistribution