public class LimitNeuralFunction extends NeuralFunction
Output limited to between configured values.
The output is limited to a range between minimum and maximum values. If the input is outside of this range and the EnableInfinity parameter is true, then the output is infinity.
The configuration parameters to the function are as follows:
Min - a lower limit of the output value (type Double). Mandatory.
Max - an upper limit of the output value (type Double). Mandatory.
EnableInfinity - denotes setting infinity output when input is outside configured range (type Boolean).
| Modifier and Type | Field and Description |
|---|---|
boolean |
enableinfinity |
Double |
max |
Double |
min |
disabled, initial, last, linkAlphaComparator, links, linkslist, name, output, parameters, posindex, reset| Constructor and Description |
|---|
LimitNeuralFunction() |
LimitNeuralFunction(List<Parameters> ps) |
| Modifier and Type | Method and Description |
|---|---|
double |
compute() |
void |
init() |
void |
verifyConfiguration() |
clearParametersHashMap, close, deactivate, getConfigParameter, getDataString, getExternalControlFunction, getInitial, getName, getOutput, getParameter, getParameter, getParameter, getParameterBoolean, getParameterDouble, getParameterInt, getParameterName, getParameterObject, getParametersSet, getParametersSize, getParametersString, getParameterType, getPosindex, getTime, isDisabled, pause, post, setConfigLinks, setField, setInitial, setLink, setLinks, setName, setOutput, setParameter, setParameter, setPosindex, stoppublic Double max
public Double min
public boolean enableinfinity
public LimitNeuralFunction(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 NeuralFunctionCopyright © 2017. All rights reserved.