private static class AggarwalYuEvolutionary.Individuum extends Object implements Comparable<AggarwalYuEvolutionary.Individuum>
Modifier and Type | Field and Description |
---|---|
(package private) double |
fitness |
(package private) short[] |
gene |
Constructor and Description |
---|
Individuum(double fitness,
short[] gene)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AggarwalYuEvolutionary.Individuum o) |
boolean |
equals(Object obj) |
double |
getFitness()
Get the fitness of this individuum.
|
short[] |
getGene()
Get the gene.
|
static AggarwalYuEvolutionary.Individuum |
nullIndividuum(int dim)
Create a "null" individuum (full space).
|
String |
toString() |
public Individuum(double fitness, short[] gene)
fitness
- Fitnessgene
- Gene informationpublic short[] getGene()
public double getFitness()
public static AggarwalYuEvolutionary.Individuum nullIndividuum(int dim)
dim
- Dimensionalitypublic int compareTo(AggarwalYuEvolutionary.Individuum o)
compareTo
in interface Comparable<AggarwalYuEvolutionary.Individuum>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.