weka.classifiers.immune.airs.algorithm
Class CellPool.StimulationComparator

java.lang.Object
  extended by weka.classifiers.immune.airs.algorithm.CellPool.StimulationComparator
All Implemented Interfaces:
java.util.Comparator<Cell>
Enclosing class:
CellPool

public static class CellPool.StimulationComparator
extends java.lang.Object
implements java.util.Comparator<Cell>


Constructor Summary
CellPool.StimulationComparator()
           
 
Method Summary
 int compare(Cell o1, Cell o2)
          Compare cells based on stimulation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CellPool.StimulationComparator

public CellPool.StimulationComparator()
Method Detail

compare

public int compare(Cell o1,
                   Cell o2)
Compare cells based on stimulation. The higher the value the higher the stimulation. Orders cells in decending order, meaning the highest stimulation members are at the beginning of the array

Specified by:
compare in interface java.util.Comparator<Cell>
Parameters:
o1 -
o2 -
Returns: