public final class DevelopmentTools
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Phylogeny |
createBalancedPhylogeny(int levels,
int children_per_node)
Creates a completely balanced rooted phylogeny with a given number of levels and
children per node.
|
static void |
intervalNumberSpecies(Phylogeny t,
int i)
Sets the species name of the external Nodes of Phylogeny t to 1, 1+i, 2,
2+i, 3, 3+i, ....
|
static void |
numberSpeciesInDescOrder(Phylogeny t)
Sets the species namea of the external Nodes of Phylogeny t to descending
integers, ending with 1.
|
static void |
numberSpeciesInOrder(Phylogeny t)
Sets the species namea of the external Nodes of Phylogeny t to ascending
integers, starting with 1.
|
static void |
randomizeSpecies(int min,
int max,
Phylogeny t)
Sets the species names of the external Nodes of Phylogeny t to a random
positive integer number between (and including) min and max.
|
public static Phylogeny createBalancedPhylogeny(int levels, int children_per_node)
levels
- children_per_node
- public static void intervalNumberSpecies(Phylogeny t, int i)
public static void numberSpeciesInDescOrder(Phylogeny t)
public static void numberSpeciesInOrder(Phylogeny t)
public static void randomizeSpecies(int min, int max, Phylogeny t)
t
- whose external species names are to be randomizedmin
- minimal value for random numbersmax
- maximum value for random numbers