|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PTreeAlgorithms
Extend this interface in your student class to perform the operations. The only requirement is that, when these methods are called with valid inputs, that you make the proper modifications to the PSpeciesNodes contained in the tree you are fed in such that the data tree is complete when the method completes.
Field Summary | |
---|---|
static int |
INFINITY
A reasonable value for infinity. |
Method Summary | |
---|---|
void |
felsenstein(net.datastructures.LinkedBinaryTree<PSpeciesNode> tree,
HashMap<ZCharacter,Integer> stateIndices,
double[][] transitionProb,
int sequenceLength)
Implements the Felsenstein max likelihood algorithm and makes changes to the PSpeciesNodes. |
void |
sankoff(net.datastructures.LinkedBinaryTree<PSpeciesNode> tree,
HashMap<ZCharacter,Integer> stateIndices,
int[][] costMatrix,
int sequenceLength)
Implements the Sankoff algorithm and makes changes to the PSpeciesNodes. |
Field Detail |
---|
static final int INFINITY
Method Detail |
---|
void sankoff(net.datastructures.LinkedBinaryTree<PSpeciesNode> tree, HashMap<ZCharacter,Integer> stateIndices, int[][] costMatrix, int sequenceLength)
tree
- a binary tree with the constraint that it is completestateIndices
- the indices for costMatrix, by ZCharactercostMatrix
- the scoring matrix from [parent][child]sequenceLength
- we conveniently provide the length in charactersvoid felsenstein(net.datastructures.LinkedBinaryTree<PSpeciesNode> tree, HashMap<ZCharacter,Integer> stateIndices, double[][] transitionProb, int sequenceLength)
tree
- a binary tree with the constraint that it is completestateIndices
- the indices for transitionProb, by ZCharactertransitionProb[y][x]
- is P[x | y, t]sequenceLength
- we conveniently provide the length in characters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |