public class IntegrationNeuralFunction extends NeuralFunction
Leaky integrator function.
The input is amplified and integrated, and slowed by a slowing factor. If the input is infinity then zero is output. However, if IgnoreInfinity is true, then the previous output is returned. Or, if EnableInfinity is true, then infinity is output. If the output is infinity, and the input returns to a real value then the output is set to the reset value, which is either zero or the value from a link, if configured.
The configuration parameters to the function are as follows:
Gain - the amplification factor (type Double). Mandatory.
Slow - the slowing factor (type Double).
EnableInfinity - true or false (type Boolean).
IgnoreInfinity - true or false (type Boolean).
| Modifier and Type | Field and Description |
|---|---|
Boolean |
enableinfinity |
Double |
gain |
Boolean |
ignoreinfinity |
Double |
max |
Double |
min |
Double |
slow |
Double |
tolerance |
disabled, initial, last, linkAlphaComparator, links, linkslist, name, output, parameters, posindex, reset| Constructor and Description |
|---|
IntegrationNeuralFunction(int g) |
IntegrationNeuralFunction(List<Parameters> ps) |
| Modifier and Type | Method and Description |
|---|---|
double |
compute() |
double |
getParameter() |
String |
getParametersString() |
void |
init() |
void |
setParameter(double par) |
void |
verifyConfiguration() |
clearParametersHashMap, close, deactivate, getConfigParameter, getDataString, getExternalControlFunction, getInitial, getName, getOutput, getParameter, getParameter, getParameterBoolean, getParameterDouble, getParameterInt, getParameterName, getParameterObject, getParametersSet, getParametersSize, getParameterType, getPosindex, getTime, isDisabled, pause, post, setConfigLinks, setField, setInitial, setLink, setLinks, setName, setOutput, setParameter, setPosindex, stoppublic Double gain
public Double slow
public Double min
public Double max
public Double tolerance
public Boolean enableinfinity
public Boolean ignoreinfinity
public IntegrationNeuralFunction(int g)
public IntegrationNeuralFunction(List<Parameters> ps) throws Exception
Exceptionpublic void verifyConfiguration()
throws Exception
verifyConfiguration in class BaseNeuralFunctionExceptionpublic void init()
throws Exception
init in class BaseNeuralFunctionExceptionpublic double compute()
compute in interface NeuralFunctionInterfacecompute in class NeuralFunctionpublic double getParameter()
getParameter in interface NeuralFunctionInterfacegetParameter in class BaseNeuralFunctionpublic void setParameter(double par)
setParameter in interface NeuralFunctionInterfacesetParameter in class BaseNeuralFunctionpublic String getParametersString()
getParametersString in interface NeuralFunctionInterfacegetParametersString in class BaseNeuralFunctionCopyright © 2017. All rights reserved.