private static class AggarwalYuEvolutionary.Individuum extends FCPair<Double,int[]>
Constructor and Description |
---|
AggarwalYuEvolutionary.Individuum(double fitness,
int[] gene)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Simple equals statement.
|
double |
getFitness()
Get the fitness of this individuum.
|
int[] |
getGene()
Get the gene.
|
static AggarwalYuEvolutionary.Individuum |
nullIndividuum(int dim)
Create a "null" individuum (full space).
|
String |
toString()
Canonical toString operator
|
public AggarwalYuEvolutionary.Individuum(double fitness, int[] gene)
fitness
- Fitnessgene
- Gene informationpublic int[] getGene()
public double getFitness()
public static AggarwalYuEvolutionary.Individuum nullIndividuum(int dim)
dim
- Dimensionalitypublic boolean equals(Object obj)
Pair
Pair.first
and Pair.second
element of
this Pair equal the Pair.first
and Pair.second
element,
respectively, of the other Pair.