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

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

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


Constructor Summary
CellPool.AffinityComparator()
           
 
Method Summary
 int compare(Cell o1, Cell o2)
          Compare cells based on affinity.
 
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.AffinityComparator

public CellPool.AffinityComparator()
Method Detail

compare

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

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