gov.sandia.cognition.statistics
Interface DiscreteDistribution<DataType>

Type Parameters:
DataType - Type of data on the domain (input) set.
All Superinterfaces:
Cloneable, CloneableSerializable, ComputableDistribution<DataType>, Distribution<DataType>, Serializable
All Known Subinterfaces:
ClosedFormComputableDiscreteDistribution<DataType>, ClosedFormDiscreteUnivariateDistribution<DomainType>, DataDistribution<DataType>, DataDistribution.PMF<KeyType>, ProbabilityMassFunction<DataType>
All Known Implementing Classes:
AbstractDataDistribution, BernoulliDistribution, BernoulliDistribution.CDF, BernoulliDistribution.PMF, BetaBinomialDistribution, BetaBinomialDistribution.CDF, BetaBinomialDistribution.PMF, BinomialDistribution, BinomialDistribution.CDF, BinomialDistribution.PMF, CategoricalDistribution, CategoricalDistribution.PMF, ChineseRestaurantProcess, ChineseRestaurantProcess.PMF, DataCountTreeSetBinnedMapHistogram, DefaultDataDistribution, DefaultDataDistribution.PMF, DeterministicDistribution, DeterministicDistribution.CDF, DeterministicDistribution.PMF, GeometricDistribution, GeometricDistribution.CDF, GeometricDistribution.PMF, MultinomialDistribution, MultinomialDistribution.PMF, MultivariatePolyaDistribution, MultivariatePolyaDistribution.PMF, NegativeBinomialDistribution, NegativeBinomialDistribution.CDF, NegativeBinomialDistribution.PMF, PoissonDistribution, PoissonDistribution.CDF, PoissonDistribution.PMF, ScalarDataDistribution, ScalarDataDistribution.CDF, ScalarDataDistribution.PMF, YuleSimonDistribution, YuleSimonDistribution.CDF, YuleSimonDistribution.PMF

public interface DiscreteDistribution<DataType>
extends ComputableDistribution<DataType>

A Distribution with a countable domain (input) set.

Since:
3.0
Author:
Kevin R. Dixon

Method Summary
 Set<? extends DataType> getDomain()
          Returns an object that allows an iteration through the domain (x-axis, independent variable) of the Distribution
 int getDomainSize()
          Gets the size of the domain.
 ProbabilityMassFunction<DataType> getProbabilityFunction()
          Gets the distribution function associated with this Distribution, either the PDF or PMF.
 
Methods inherited from interface gov.sandia.cognition.statistics.Distribution
sample, sample
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Method Detail

getDomain

Set<? extends DataType> getDomain()
Returns an object that allows an iteration through the domain (x-axis, independent variable) of the Distribution

Returns:
Collection that enumerates each value that the domain can take

getDomainSize

int getDomainSize()
Gets the size of the domain.

Returns:
The size of the domain.

getProbabilityFunction

ProbabilityMassFunction<DataType> getProbabilityFunction()
Description copied from interface: ComputableDistribution
Gets the distribution function associated with this Distribution, either the PDF or PMF.

Specified by:
getProbabilityFunction in interface ComputableDistribution<DataType>
Returns:
Distribution function associated with this Distribution.