de.lmu.ifi.dbs.elki.algorithm.outlier
Class AggarwalYuEvolutionary.Individuum

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.pairs.Pair<FIRST,SECOND>
      extended by de.lmu.ifi.dbs.elki.utilities.pairs.FCPair<Double,int[]>
          extended by de.lmu.ifi.dbs.elki.algorithm.outlier.AggarwalYuEvolutionary.Individuum
All Implemented Interfaces:
PairInterface<Double,int[]>, Comparable<FCPair<Double,int[]>>
Enclosing class:
AggarwalYuEvolutionary<V extends NumberVector<?,?>>

private static class AggarwalYuEvolutionary.Individuum
extends FCPair<Double,int[]>

Individuum for the evolutionary search.


Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.pairs.Pair
first, second
 
Constructor Summary
AggarwalYuEvolutionary.Individuum(double fitness, int[] gene)
          Constructor
 
Method Summary
 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
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.pairs.FCPair
compareTo, newArray
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.pairs.Pair
getFirst, getSecond, hashCode, newPairArray, setFirst, setSecond
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggarwalYuEvolutionary.Individuum

public AggarwalYuEvolutionary.Individuum(double fitness,
                                         int[] gene)
Constructor

Parameters:
fitness - Fitness
gene - Gene information
Method Detail

getGene

public int[] 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 String toString()
Description copied from class: Pair
Canonical toString operator

Overrides:
toString in class Pair<Double,int[]>

equals

public boolean equals(Object obj)
Description copied from class: Pair
Simple equals statement. This Pair equals another Object if they are identical or if the other Object is also a Pair and the Pair.first and Pair.second element of this Pair equal the Pair.first and Pair.second element, respectively, of the other Pair.

Overrides:
equals in class Pair<Double,int[]>
Parameters:
obj - Object to compare to

Release 0.4.0 (2011-09-20_1324)