public class SimpleWeightMatrix extends java.lang.Object implements WeightMatrix, java.io.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(java.lang.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 retrievepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object