stella.util
Class QuadraticBoard

java.lang.Object
  extended by stella.util.TriggerBoard
      extended by stella.util.QuadraticBoard
All Implemented Interfaces:
Toggling

public class QuadraticBoard
extends TriggerBoard

A subclass of a trigger board. This board takes the impact of offsets from the mean as the square of the argument this should be optimal for normal-distributed noise.


Constructor Summary
QuadraticBoard(String parameter)
          Constructs a quadratic trigger board from a string.
 
Method Summary
protected  double getNegativeHit(double raw)
          The impact of a negativ value.
protected  double getPositiveHit(double raw)
          The impact of a positive value.
 
Methods inherited from class stella.util.TriggerBoard
addHit, equalBoard, equals, getNegativeTrigger, getPositiveTrigger, getTriggerValue, isPositive, setTriggers
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadraticBoard

public QuadraticBoard(String parameter)
Constructs a quadratic trigger board from a string.

Method Detail

getNegativeHit

protected double getNegativeHit(double raw)
The impact of a negativ value. Returns the negativ square of the arguement.

Overrides:
getNegativeHit in class TriggerBoard
Parameters:
raw - An always-negative value.

getPositiveHit

protected double getPositiveHit(double raw)
The impact of a positive value. Returns the square of the argument.

Overrides:
getPositiveHit in class TriggerBoard
Parameters:
raw - An always-positive value.