|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.model.subst.SubstitutionModel
statalign.model.subst.plugins.AminoAcidModel
public abstract class AminoAcidModel
Common superclass for amino acid substitution models.
Field Summary | |
---|---|
static java.lang.String |
type
|
Fields inherited from class statalign.model.subst.SubstitutionModel |
---|
alphabet, attachedScoringScheme, d, e, menuName, params, v, w |
Constructor Summary | |
---|---|
AminoAcidModel()
|
Method Summary | |
---|---|
double |
acceptable(RawSequences r)
This function decides if the model can accept the input sequences. |
java.awt.Color |
getColor(char c)
Returns the color of a character. |
char |
mostLikely(double[] seq)
Returns the most likely character given the Felsentein likelihood array. |
java.lang.String |
print()
Dummy function with the possibility of further developments. |
void |
restoreParameter()
Empty method provided for models with no parameters (the evolutionary time is represented in the edge lengths). |
double |
sampleParameter()
It does nothing and returns 0, i.e log-probability 1. |
Methods inherited from class statalign.model.subst.SubstitutionModel |
---|
getMenuName, getMenuName, getPrior, getType, getType, updateSpan, updateTransitionMatrix |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String type
Constructor Detail |
---|
public AminoAcidModel()
Method Detail |
---|
public java.awt.Color getColor(char c)
getColor
in class SubstitutionModel
c
- character whose background colour is to be returnedpublic java.lang.String print()
print
in class SubstitutionModel
public void restoreParameter()
restoreParameter
in class SubstitutionModel
public double sampleParameter()
sampleParameter
in class SubstitutionModel
public double acceptable(RawSequences r)
acceptable
in class SubstitutionModel
r
- raw sequences
public char mostLikely(double[] seq)
mostLikely
in class SubstitutionModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |