net.sourceforge.jannealer
Class SimplexList

java.lang.Object
  |
  +--net.sourceforge.jannealer.SimplexList

class SimplexList
extends java.lang.Object

An ArrayList of Simplex Objects

Since:
October 29, 2001
See Also:
org.theblueplanet.annealing.Simplex

Constructor Summary
SimplexList(int itol)
          Constructor for the SimplexList object
 
Method Summary
 void add(Simplex simplex)
          Add a Simplex object to the ArrayList
 Simplex getMinSimplex()
          Gets the Index the Simplex with the minimum value field in the SimplexList
 void pruneMax()
          Remove from list.
protected  void remove(int ii)
          Removes a Simplex from the SimplexList
 int size()
          Returns the size of the ArrayList
 double spread()
          Computes the difference between the maximum and the minimum values of the elements of the SimplexList, excluding the last Simplex added
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplexList

public SimplexList(int itol)
Constructor for the SimplexList object
Parameters:
itol - Description of Parameter
Method Detail

getMinSimplex

public Simplex getMinSimplex()
Gets the Index the Simplex with the minimum value field in the SimplexList
Returns:
The index of the Simplex with the lowest value field

add

public void add(Simplex simplex)
Add a Simplex object to the ArrayList
Parameters:
simplex - Description of Parameter

spread

public double spread()
Computes the difference between the maximum and the minimum values of the elements of the SimplexList, excluding the last Simplex added
Returns:
The spread

size

public int size()
Returns the size of the ArrayList
Returns:
The number of Simplex objects in the SimplexList

remove

protected void remove(int ii)
Removes a Simplex from the SimplexList
Parameters:
ii - The index of the Simplex to be removed

pruneMax

public void pruneMax()
Remove from list.