SimpleDistribution (biojava-legacy 1.9.5 API)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classSimpleDistribution.TrainerA simple implementation of a trainer for this class.
-
Nested classes/interfaces inherited from interface org.biojava.bio.dist.Distribution
Distribution.NullModelForwarder
-
-
Field Summary
-
Fields inherited from class org.biojava.bio.dist.AbstractDistribution
nullModelForwarder
-
Fields inherited from interface org.biojava.bio.dist.Distribution
NULL_MODEL, WEIGHTS
-
-
Constructor Summary
Constructors Constructor Description SimpleDistribution(Distribution dist)make an instance of SimpleDistribution with weights identical to the specified Distribution.
SimpleDistribution(FiniteAlphabet alphabet)make an instance of SimpleDistribution for the specified Alphabet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlphabetgetAlphabet()The alphabet from which this spectrum emits symbols.
DistributiongetNullModel()Retrieve the null model Distribution that this Distribution recognizes.
doublegetWeightImpl(AtomicSymbol s)Override this method to implement getting the weight for an atomic symbol.
protected double[]getWeights()Get the underlying array that stores the weights.
protected booleanhasWeights()Indicate whether the weights array has been allocated yet.
voidregisterWithTrainer(DistributionTrainerContext dtc)Register an SimpleDistribution.Trainer instance as the trainer for this distribution.
protected voidsetNullModelImpl(Distribution nullModel)Implement this to set the null model.
protected voidsetWeightImpl(AtomicSymbol s, double w)Implement this to actually set the weight.
-
Methods inherited from class org.biojava.bio.dist.AbstractDistribution
equals, getChangeSupport, getWeight, hashCode, sampleSymbol, setNullModel, setWeight
-
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
-
-