edu.memphis.ccrg.lida.framework.strategies
Interface DecayStrategy

All Superinterfaces:
Initializable, Strategy
All Known Implementing Classes:
LinearDecayStrategy, NoDecayStrategy, SigmoidDecayStrategy

public interface DecayStrategy
extends Strategy

A strategy pattern for decaying Activatibles or Learnables Implementations should add themselves to ElementFactory via the factoriesData.xml configuration file.

Author:
Javier Snaider, Ryan J. McCall

Method Summary
 double decay(double currentActivation, long ticks, java.util.Map<java.lang.String,? extends java.lang.Object> params)
          Decays the current activation according to some internal decay function.
 double decay(double currentActivation, long ticks, java.lang.Object... params)
          Decays the current activation according to some internal decay function.
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
containsParameter, getParam, getParameters, init, init
 

Method Detail

decay

double decay(double currentActivation,
             long ticks,
             java.lang.Object... params)
Decays the current activation according to some internal decay function.

Parameters:
currentActivation - activation of the entity before decay.
ticks - The number of ticks to decay.
params - optional parameters
Returns:
new activation

decay

double decay(double currentActivation,
             long ticks,
             java.util.Map<java.lang.String,? extends java.lang.Object> params)
Decays the current activation according to some internal decay function.

Parameters:
currentActivation - activation of the entity before decay.
ticks - how much time has passed since last decay
params - parameters
Returns:
new activation amount