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
IllegalAlphabetException
public SimpleWeightMatrix(Distribution[] columns) throws IllegalAlphabetException
IllegalAlphabetException
public Alphabet getAlphabet()
WeightMatrix
getAlphabet
in interface WeightMatrix
public int columns()
WeightMatrix
columns
in interface WeightMatrix
public 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 WeightMatrix
column
- the weight matrix column to retrieveCopyright © 2014 BioJava. All rights reserved.