@Deprecated public class Chromosome extends Object implements Comparable
| Constructor and Description |
|---|
Chromosome(Double[] doubles)
Deprecated.
|
Chromosome(int size)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull Object o)
Deprecated.
|
Chromosome |
copy()
Deprecated.
Creates chromosome copy.
|
Double |
getFitness()
Deprecated.
Returns the fitness value.
|
double |
getGene(int idx)
Deprecated.
Returns the gene value by index.
|
void |
setFitness(Double fitness)
Deprecated.
Sets the fitness value.
|
void |
setGene(int idx,
double geneValue)
Deprecated.
Sets gene value by index.
|
int |
size()
Deprecated.
Returns the amount of genes in chromosome.
|
Double[] |
toDoubleArray()
Deprecated.
Returns the double array chromosome representation.
|
public Chromosome(int size)
size - Size.public Chromosome(Double[] doubles)
doubles - Doubles.public Double[] toDoubleArray()
public Double getFitness()
public void setFitness(Double fitness)
fitness - Fitness.public int size()
public double getGene(int idx)
idx - Index.public void setGene(int idx,
double geneValue)
idx - Index.geneValue - Gene value.public Chromosome copy()
public int compareTo(@NotNull
@NotNull Object o)
compareTo in interface Comparable
GridGain In-Memory Computing Platform : ver. 8.9.38 Release Date : September 22 2026