DataType - Value for the domain (x-axis, independent variable), may be
something like an Integer, etc.@PublicationReference(author="Wikipedia", title="Probability mass function", type=WebPage, year=2009, url="http://en.wikipedia.org/wiki/Probability_mass_function") public interface ProbabilityMassFunction<DataType> extends ProbabilityFunction<DataType>, DiscreteDistribution<DataType>
ProbabilityMassFunction interface defines the functionality of
a probability mass function.
A PMF has the following properties:
- The domain is a countably finite set
- The dependent values sum to 1.0
- PMF(x) == "probability that a random variable takes value x"
- PMF(x) >= 0.0 for all x
- By consequence, PMF(x) <= 1.0 for all x| Modifier and Type | Method and Description |
|---|---|
double |
getEntropy()
Gets the entropy of the values in the histogram.
|
ProbabilityMassFunction<DataType> |
getProbabilityFunction()
Gets the distribution function associated with this Distribution,
either the PDF or PMF.
|
logEvaluategetDomain, getDomainSizesample, sample, sampleIntocloneProbabilityMassFunction<DataType> getProbabilityFunction()
ComputableDistributiongetProbabilityFunction in interface ComputableDistribution<DataType>getProbabilityFunction in interface DiscreteDistribution<DataType>double getEntropy()