nz.ac.waikato.mcennis.rat.graph.descriptors
Class ExponentialDecayParameter

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.descriptors.BasicParameter
      extended by nz.ac.waikato.mcennis.rat.graph.descriptors.ExponentialDecayParameter
All Implemented Interfaces:
Parameter, ParameterInternal, SettableParameter

public class ExponentialDecayParameter
extends BasicParameter

Extension of BasicParameter that sets the value, if double, to a 0.5 exponential decay of all values seen.


Constructor Summary
ExponentialDecayParameter()
          Creates a new instance of ExponentialDecayParameter
 
Method Summary
 void setValue(java.lang.Object o)
          Sets the parameter's value to be an exponential decay of all double values that have been seen.
 
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.descriptors.BasicParameter
getName, getType, getValue, isStructural, setName, setStructural, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExponentialDecayParameter

public ExponentialDecayParameter()
Creates a new instance of ExponentialDecayParameter

Method Detail

setValue

public void setValue(java.lang.Object o)
Sets the parameter's value to be an exponential decay of all double values that have been seen. FOr example '4.0' is passed three times. The values is 4.0+2.0+1.0 = 7.0.

Specified by:
setValue in interface SettableParameter
Overrides:
setValue in class BasicParameter
Parameters:
o - new parameter value