public static class ScalarDataDistribution.PMF extends ScalarDataDistribution implements DataDistribution.PMF<java.lang.Double>
ScalarDataDistribution.CDF, ScalarDataDistribution.Estimator, ScalarDataDistribution.PMFDefaultDataDistribution.DefaultFactory<DataType>, DefaultDataDistribution.WeightedEstimator<KeyType>AbstractMutableDoubleMap.Entry<KeyType>, AbstractMutableDoubleMap.SimpleEntry<KeyType>, AbstractMutableDoubleMap.SimpleEntrySet<KeyType>, AbstractMutableDoubleMap.SimpleIterator<KeyType>DataDistribution.PMF<KeyType>ScalarMap.Entry<KeyType>DEFAULT_INITIAL_CAPACITY, totalmap| Constructor and Description |
|---|
PMF()
Default constructor
|
PMF(java.lang.Iterable<? extends java.lang.Number> data)
Creates a new instance of PMF
|
PMF(ScalarDataDistribution other)
Copy constructor
|
| 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.
|
ScalarDataDistribution.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.
|
clone, getCDF, getEstimator, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getVarianceclear, getMeanValue, getTotal, increment, setfromInfiniteVector, getDomain, getDomainSize, getEntropy, getFraction, getLogFraction, getMaxValue, getMinValue, sample, sample, sampleInto, toInfiniteVectorasMap, compact, entrySet, getcontainsKey, decrement, decrement, decrementAll, decrementAll, getMaxValueKey, getMaxValueKeys, getMinValueKey, getMinValueKeys, increment, incrementAll, incrementAll, isEmpty, keySet, setAll, setAll, sizeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, fromInfiniteVector, getEntropy, getEstimator, getFraction, getLogFraction, getTotal, toInfiniteVectorasMap, decrement, decrement, decrementAll, decrementAll, entrySet, get, getMaxValue, getMinValue, increment, increment, incrementAll, incrementAll, set, setAll, setAllclear, containsKey, getMaxValueKey, getMaxValueKeys, getMinValueKey, getMinValueKeys, isEmpty, keySet, sizegetEntropygetDomain, getDomainSizesample, sample, sampleIntopublic PMF()
public PMF(ScalarDataDistribution other)
other - ScalarDataDistribution to copypublic PMF(java.lang.Iterable<? extends java.lang.Number> data)
data - Data used to create the PMFpublic double logEvaluate(java.lang.Double input)
ProbabilityFunctionlogEvaluate in interface ProbabilityFunction<java.lang.Double>input - The input to be evaluatedpublic java.lang.Double evaluate(java.lang.Double input)
Evaluatorpublic ScalarDataDistribution.PMF getProbabilityFunction()
ComputableDistributiongetProbabilityFunction in interface ComputableDistribution<java.lang.Double>getProbabilityFunction in interface DataDistribution<java.lang.Double>getProbabilityFunction in interface DiscreteDistribution<java.lang.Double>getProbabilityFunction in interface ProbabilityMassFunction<java.lang.Double>getProbabilityFunction in class ScalarDataDistribution