pal.tree
public class Local extends java.lang.Object
Constructor and Description |
---|
Local() |
Modifier and Type | Method and Description |
---|---|
static void |
displayLabel(java.io.PrintWriter out,
java.lang.String label,
int width,
boolean center)
print label with a prespecified length
(label will be shortened or spaces will introduced, if necessary)
|
static Tree |
local(Tree tree) |
static Tree |
local(Tree tree,
double scaleFactor)
This method does a local interchange on
the given tree: Note the original tree is modified.
|
static void |
main(java.lang.String[] args) |
static void |
print4TaxonTree(Tree tree,
java.io.PrintWriter out) |
static Tree |
stochasticNNI(Tree tree) |
public static Tree local(Tree tree, double scaleFactor)
Actual Logical 2 1 4 /|\ \ / / | \ \ / / | \ \ / 1 A 3 2----3 / \ / \ / \ / \ / \ / \ B 4 A BA random internal edge (2,3) is selected and extended in both directions to create a back bone (1,2,3,4). One of the two internal nodes (2,3) is moved to a new random position on backbone and the backbone is scale in size.
scale
- determines whether or not the backbone is scaledpublic static void print4TaxonTree(Tree tree, java.io.PrintWriter out)
public static void displayLabel(java.io.PrintWriter out, java.lang.String label, int width, boolean center)
out
- output streamlabel
- label to be printedwidth
- desired lengthpublic static final void main(java.lang.String[] args)