public class BuildTree
extends java.lang.Object
Constructor and Description |
---|
BuildTree() |
Modifier and Type | Method and Description |
---|---|
static InitTreeArrayStruct |
buildTreeArray(int cSrc,
int cTar,
float[] sizeHill,
float[] sizeHole,
DistanceMatrix cost)
Build an array instance of the initial tree.
|
public static InitTreeArrayStruct buildTreeArray(int cSrc, int cTar, float[] sizeHill, float[] sizeHole, DistanceMatrix cost)
Tree
.cSrc
- Number of sourcescTar
- Number of targetssizeHill
- Amount of earth at the sourcessizeHole
- Size of the holes (NEGATIVE)cost
- Cost matrix (source,target)