Package elki.outlier.subspace
Class AggarwalYuEvolutionary.Individuum
- java.lang.Object
-
- elki.outlier.subspace.AggarwalYuEvolutionary.Individuum
-
- All Implemented Interfaces:
java.lang.Comparable<AggarwalYuEvolutionary.Individuum>
- Enclosing class:
- AggarwalYuEvolutionary
private static class AggarwalYuEvolutionary.Individuum extends java.lang.Object implements java.lang.Comparable<AggarwalYuEvolutionary.Individuum>
Individuum for the evolutionary search.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description Individuum(double fitness, short[] gene)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getGene
public short[] getGene()
Get the gene.- Returns:
- the gene information
-
getFitness
public double getFitness()
Get the fitness of this individuum.- Returns:
- fitness
-
nullIndividuum
public static AggarwalYuEvolutionary.Individuum nullIndividuum(int dim)
Create a "null" individuum (full space).- Parameters:
dim
- Dimensionality- Returns:
- new individuum
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(AggarwalYuEvolutionary.Individuum o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AggarwalYuEvolutionary.Individuum>
-
-