public static class DistributionFactory.DefaultDistributionFactory extends java.lang.Object implements DistributionFactory, java.io.Serializable
The default DistributionFactory implementation.
It knows about hand-optimized implementations for some alphabets (like DNA) without the optimized classes needing to be exposed from the DP package.
DistributionFactory.DefaultDistributionFactory
DEFAULT
Constructor and Description |
---|
DefaultDistributionFactory() |
Modifier and Type | Method and Description |
---|---|
Distribution |
createDistribution(Alphabet alpha)
Generate a new Distribution as requested.
|
public Distribution createDistribution(Alphabet alpha) throws IllegalAlphabetException
DistributionFactory
createDistribution
in interface DistributionFactory
alpha
- the emission alphabet for the stateIllegalAlphabetException
- if the factory is unable to generate a
distribution for the required alphabet