private static class AggarwalYuEvolutionary.Individuum extends java.lang.Object implements java.lang.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(java.lang.Object obj) |
double |
getFitness()
Get the fitness of this individuum.
|
short[] |
getGene()
Get the gene.
|
int |
hashCode() |
static AggarwalYuEvolutionary.Individuum |
nullIndividuum(int dim)
Create a "null" individuum (full space).
|
java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(AggarwalYuEvolutionary.Individuum o)
compareTo
in interface java.lang.Comparable<AggarwalYuEvolutionary.Individuum>
Copyright © 2019 ELKI Development Team. License information.