Package 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.dist.DistributionFactory
DistributionFactory.DefaultDistributionFactory
-
Field Summary
Fields inherited from interface org.biojava.bio.dist.DistributionFactory
DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDistribution
(Alphabet alpha) Generate a new Distribution as requested.
-
Constructor Details
-
DefaultDistributionFactory
public DefaultDistributionFactory()
-
-
Method Details
-
createDistribution
Description copied from interface:DistributionFactory
Generate a new Distribution as requested.- Specified by:
createDistribution
in interfaceDistributionFactory
- 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
-