absurdist
Class Absurdist.AllBest

java.lang.Object
  extended byabsurdist.Absurdist.AllBest
Enclosing class:
Absurdist

static class Absurdist.AllBest
extends java.lang.Object

An auxiliary class used during the randm tie-breaking process in find2WayMap


Nested Class Summary
(package private) static class Absurdist.AllBest.BestPair
          A pair of (row,column) indexes
 
Field Summary
(package private)  java.util.Vector allBest
          A vector of BestPair instances, listing all occurrences of the best value in the currently analyzed submatrix.
(package private)  double max
          The currently best value
 
Constructor Summary
(package private) Absurdist.AllBest(double max)
           
 
Method Summary
(package private)  Absurdist.AllBest.BestPair pickOne()
          Random tie-breaking.
(package private)  void testValue(int io, int in, double val)
          Compare the value at the (io,in) position against the current best value, and decide whether this is the new best value, a tie with already stored values, or neither.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

max

double max
The currently best value


allBest

java.util.Vector allBest
A vector of BestPair instances, listing all occurrences of the best value in the currently analyzed submatrix.

Constructor Detail

Absurdist.AllBest

Absurdist.AllBest(double max)
Method Detail

testValue

void testValue(int io,
               int in,
               double val)
Compare the value at the (io,in) position against the current best value, and decide whether this is the new best value, a tie with already stored values, or neither.


pickOne

Absurdist.AllBest.BestPair pickOne()
Random tie-breaking.

Returns:
One of the elements of this vector, chosen at random; null if the vector is empty