public interface DistributionFactory
A thing that can make Distributions.
This decouples programs from needing to know what implementation of Distribution to instantiate for a given alphabet. It also lets you parameterise model creation for things like profile HMMs.
Modifier and Type | Interface and Description |
---|---|
static class |
DistributionFactory.DefaultDistributionFactory
The default DistributionFactory implementation.
|
Modifier and Type | Field and Description |
---|---|
static DistributionFactory |
DEFAULT
The default DistributionFactory object.
|
Modifier and Type | Method and Description |
---|---|
Distribution |
createDistribution(Alphabet alpha)
Generate a new Distribution as requested.
|
static final DistributionFactory DEFAULT
The default DistributionFactory object.
You may wish to alias this within your scripts with something like: DistributionFactory dFact = DistributionFactory.DEFAULT; dFact.createDistribution(...);
Distribution createDistribution(Alphabet alpha) throws IllegalAlphabetException
alpha
- the emission alphabet for the stateIllegalAlphabetException
- if the factory is unable to generate a
distribution for the required alphabetCopyright © 2014 BioJava. All rights reserved.