edu.memphis.ccrg.lida.framework.strategies
Class SigmoidExciteStrategy
java.lang.Object
edu.memphis.ccrg.lida.framework.strategies.StrategyImpl
edu.memphis.ccrg.lida.framework.strategies.SigmoidExciteStrategy
- All Implemented Interfaces:
- Initializable, ExciteStrategy, Strategy, java.io.Serializable
public class SigmoidExciteStrategy
- extends StrategyImpl
- implements ExciteStrategy
Default implementation of sigmoid excite. Uses two parameters in activation calculation.
Can pass these parameters when the strategy is initialized. (see factoriesData.xml).
Alternatively, parameters can be passed in the excite method call.
Formula used: 1 / (1 + exp(-a* x + c))
- Author:
- Javier Snaider & Ryan
- See Also:
- Serialized Form
Method Summary |
double |
excite(double currentActivation,
double excitation,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
|
double |
excite(double curActiv,
double excitation,
java.lang.Object... params)
Excites the current activation according to some internal excite function. |
void |
init()
This is a convenience method to initialize this Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SigmoidExciteStrategy
public SigmoidExciteStrategy()
init
public void init()
- Description copied from interface:
Initializable
- This is a convenience method to initialize this Object. It is called from init(Map parameters).
Subclasses can overwrite this method in order to initialize this Object. But make sure to call super.init();
at the beginning of the implementation of this method.
- Specified by:
init
in interface Initializable
- Overrides:
init
in class StrategyImpl
excite
public double excite(double curActiv,
double excitation,
java.lang.Object... params)
- Description copied from interface:
ExciteStrategy
- Excites the current activation according to some internal excite function.
- Specified by:
excite
in interface ExciteStrategy
- Parameters:
curActiv
- activation of the entity before excite.excitation
- amount of activation to addsparams
- parameters
- Returns:
- new activation amount
excite
public double excite(double currentActivation,
double excitation,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
- Specified by:
excite
in interface ExciteStrategy
- Parameters:
currentActivation
- activation of the entity before excite.excitation
- amount of activation to addsparams
- parameters
- Returns:
- new activation amount