public class TreeSimulator
extends java.lang.Object
| Constructor and Description |
|---|
TreeSimulator(java.util.Collection<Taxon> taxa,
java.lang.String heightAttributeName)
A constructor for a given collection of taxa.
|
TreeSimulator(java.lang.String taxonPrefix,
double[] samplingTimes) |
TreeSimulator(java.lang.String taxonPrefix,
int taxonCount)
A constructor for a given number of taxa, all sampled at the same time
|
TreeSimulator(java.lang.String taxonPrefix,
int[] samplingCounts,
double[] samplingTimes) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
A main() to test the tree simulation classes.
|
RootedTree |
simulate(IntervalGenerator intervalGenerator) |
RootedTree |
simulate(IntervalGenerator intervalGenerator,
boolean medianHeights) |
public TreeSimulator(java.lang.String taxonPrefix,
int taxonCount)
taxonCount - public TreeSimulator(java.lang.String taxonPrefix,
double[] samplingTimes)
public TreeSimulator(java.lang.String taxonPrefix,
int[] samplingCounts,
double[] samplingTimes)
public TreeSimulator(java.util.Collection<Taxon> taxa, java.lang.String heightAttributeName)
taxa - public RootedTree simulate(IntervalGenerator intervalGenerator)
public RootedTree simulate(IntervalGenerator intervalGenerator, boolean medianHeights)
public static void main(java.lang.String[] args)
args - http://code.google.com/p/jebl2/