|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jebl.evolution.parsimony.FitchParsimony
public class FitchParsimony
Class for reconstructing characters using Fitch parsimony. This is intended to be much faster than the static methods in the utility "Parsimony" class.
Constructor Summary | |
---|---|
FitchParsimony(List<Pattern> patterns,
boolean gapsAreStates)
|
|
FitchParsimony(Patterns patterns,
boolean gapsAreStates)
|
Method Summary | |
---|---|
double |
getScore(Tree tree)
Calculates the minimum number of steps for the parsimony reconstruction for the given tree. |
double[] |
getSiteScores(Tree tree)
Calculates the minimum number of siteScores for the parsimony reconstruction of a a set of character patterns on a tree. |
State[] |
getStates(Tree tree,
Node node)
Returns the reconstructed character states for a given node in the tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FitchParsimony(List<Pattern> patterns, boolean gapsAreStates)
public FitchParsimony(Patterns patterns, boolean gapsAreStates)
Method Detail |
---|
public double[] getSiteScores(Tree tree)
getSiteScores
in interface ParsimonyCriterion
tree
- a tree object to reconstruct the characters on
public double getScore(Tree tree)
ParsimonyCriterion
getScore
in interface ParsimonyCriterion
tree
- a tree object to reconstruct the characters on
public State[] getStates(Tree tree, Node node)
getStates
in interface ParsimonyCriterion
tree
- a tree object to reconstruct the characters onnode
- the node of the tree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |