iterators
Class SurfaceIterator

java.lang.Object
  extended byiterators.ModelIterator
      extended byiterators.SurfaceIterator
All Implemented Interfaces:
java.lang.Runnable

public class SurfaceIterator
extends ModelIterator

Use this to find the surface around a particular instance of the network. There are currently two modes:
FindEdges For each parameter that its told to vary, this iterator changes that parameter in both directions until it reaches a stopping value that's larger than the thresholdScore or until it goes outside the bounds of that parameter. I've made the steps a bit crudely. It simply multiplies the total range of the parameter by Fraction, and that's the initial step in each direction. Each subsequent step is twice the previous step (ie. next step is original_pos + 2 * initialStep, then original_pos + 4 * initialStep, ...). If it reaches a value above the thresholdScore, it backs up a bit and does a couple more runs just before that to get a better idea of what the transition looks like. If it goes in one direction for numMoves without going above the threshold score, it stops going in that direction.
Range This just scans from lower to upper bounds. You can include bounds when you input parameters.
RelativeRange This scans between Fraction times current value on either side of current value
FractionRange This scans Fraction of the whole range, centered around current position.


Field Summary
 
Fields inherited from class iterators.ModelIterator
cells, finalScore, model, network, nParsTV, numCells, numFunctionCalls, origStopper, outFileName, p, parsTV, ps, running, runThread, theFunction, TheIteratorViewer, verbose
 
Constructor Summary
SurfaceIterator()
           
 
Method Summary
 ModelIterator copy()
           
 void doRun()
           
protected  void loadParameter(java.lang.String info, BetterTokenizer tokenizer)
           
 
Methods inherited from class iterators.ModelIterator
continueF, didBomb, didPass, doStartRun, F, getOutputFileName, getParameterSet, getState, getStopper, getValue, init, isRunning, isSaveExtra, iterError, loadParameters, print, println, println, quit, reset, resetStopper, run, saveExtra, saveOutput, saveOutputTags, setFunction, setIteratorViewer, setOutputFile, setPrint, setPrintStream, setState, setStopper, startRun, stopRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceIterator

public SurfaceIterator()
Method Detail

copy

public ModelIterator copy()
                   throws java.lang.Exception
Overrides:
copy in class ModelIterator
Throws:
java.lang.Exception

loadParameter

protected void loadParameter(java.lang.String info,
                             BetterTokenizer tokenizer)
                      throws java.lang.Exception
Overrides:
loadParameter in class ModelIterator
Throws:
java.lang.Exception

doRun

public void doRun()
Overrides:
doRun in class ModelIterator