stoppers
Class CellSurround2Stop
java.lang.Object
stoppers.SimpleStop
stoppers.CellSurround2Stop
- public class CellSurround2Stop
- extends SimpleStop
A stopper that looks for a single cell with a high value of a Node, surrounded
by cells with low values of that Node. The code in here borrows liberally from the
Oscillating Stripe Stop. It should give the best score to a stable, non-oscillating
single cell with a high value whose neighbors all have a low value for that Node.
Methods inherited from class stoppers.SimpleStop |
computeStripeScore, getHowStable, getScore, getStopTime, init, initCells, loadParameters, saveOutput, saveOutputTags, setCutoff, setEvaluating, setStopTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CellSurround2Stop
public CellSurround2Stop()
CellSurround2Stop
public CellSurround2Stop(float stop_time)
stop
public boolean stop(float time)
- Overrides:
stop
in class SimpleStop
checkBullseye
public float checkBullseye(Cell[] cells,
float time)
- Returns the maximum value of the target node in the surrounding cells.
Also sets patternGood to true if center cell is above threshold, surrounding
cells are below low threshold.
didPass
public boolean didPass(float s)
- Overrides:
didPass
in class SimpleStop
didPass
public boolean didPass()
- Overrides:
didPass
in class SimpleStop
reset
public void reset()
- Overrides:
reset
in class SimpleStop
loadParameter
protected void loadParameter(java.lang.String info,
BetterTokenizer tokenizer)
throws java.lang.Exception
- Overrides:
loadParameter
in class SimpleStop
- Throws:
java.lang.Exception