cs195z.support
Class PDataSet
java.lang.Object
cs195z.support.PDataSet
public class PDataSet
- extends Object
Generates an nds4 LinkedBinaryTree[PSpeciesNode] selected
from the available ones.
Note that your project should work for any dataset of PSpeciesNode,
regardless of the ZCharacter sequence of the leaves (although your input
is guaranteed to a binary tree with species as leaves...)
- Author:
- apstewar - nobody else would do such busy work
PDataSet
public PDataSet(PDataSet.AvailableDataSets s)
- PDataSet preloads the desired data set from the AvailableDataSets.
Use the getter methods after to get the requisite data.
- Parameters:
s
-
getTree
public net.datastructures.LinkedBinaryTree<PSpeciesNode> getTree()
getStateIndices
public HashMap<ZCharacter,Integer> getStateIndices()
getSankoffMatrix
public int[][] getSankoffMatrix()
getFelsensteinMatrix
public double[][] getFelsensteinMatrix()
getSequenceLength
public int getSequenceLength()