org.biojava.bio.dist
Class DistributionFactory.DefaultDistributionFactory
java.lang.Object
org.biojava.bio.dist.DistributionFactory.DefaultDistributionFactory
- All Implemented Interfaces:
- Serializable, DistributionFactory
- Enclosing interface:
- DistributionFactory
public static class DistributionFactory.DefaultDistributionFactory
- extends Object
- implements DistributionFactory, 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.
- Author:
- Matthew Pocock
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistributionFactory.DefaultDistributionFactory
public DistributionFactory.DefaultDistributionFactory()
createDistribution
public Distribution createDistribution(Alphabet alpha)
throws IllegalAlphabetException
- Description copied from interface:
DistributionFactory
- Generate a new Distribution as requested.
- Specified by:
createDistribution
in interface DistributionFactory
- Parameters:
alpha
- the emission alphabet for the state
- Returns:
- a new Distribution instance
- Throws:
IllegalAlphabetException
- if the factory is unable to generate a
distribution for the required alphabet