public class SimpleWeightMatrix extends Object implements WeightMatrix, Serializable
| Constructor and Description |
|---|
SimpleWeightMatrix(Alphabet alpha,
int columns,
DistributionFactory dFact) |
SimpleWeightMatrix(Distribution[] columns) |
| Modifier and Type | Method and Description |
|---|---|
int |
columns()
The number of columns modeled by the weight matrix.
|
boolean |
equals(Object o) |
Alphabet |
getAlphabet()
The alphabet for the sequences that this weight matrix models.
|
Distribution |
getColumn(int column)
Retrieve a column as an EmissionState.
|
int |
hashCode() |
public SimpleWeightMatrix(Alphabet alpha, int columns, DistributionFactory dFact) throws IllegalAlphabetException
IllegalAlphabetExceptionpublic SimpleWeightMatrix(Distribution[] columns) throws IllegalAlphabetException
IllegalAlphabetExceptionpublic Alphabet getAlphabet()
WeightMatrixgetAlphabet in interface WeightMatrixpublic int columns()
WeightMatrixcolumns in interface WeightMatrixpublic Distribution getColumn(int column)
WeightMatrix
To find the emission probability for Symbol sym at column col use:
wm.getColumn(col).getWeight(sym).
getColumn in interface WeightMatrixcolumn - the weight matrix column to retrieveCopyright © 2020 BioJava. All rights reserved.