public static final class Chromosome.Util
extends java.lang.Object
Constructor and Description |
---|
Chromosome.Util() |
Modifier and Type | Method and Description |
---|---|
static double[] |
getDifference(Chromosome c0,
Chromosome c1)
Provides the gene-by-gene quantitative difference vector.
|
static double[] |
getDifference(Chromosome c0,
Chromosome c1,
double[] dist)
Provides the gene-by-gene quantitative difference vector.
|
public static final double[] getDifference(Chromosome c0, Chromosome c1)
c0
- - the first chromosome to comparec1
- - the second chromosome to comparepublic static final double[] getDifference(Chromosome c0, Chromosome c1, double[] dist)
dist
is null
or not properly sized, then the vector is first created.c0
- - the first chromosome to comparec1
- - the second chromosome to compare