public class ThresholdNeuralFunction extends NeuralFunction
Output limited to by a threshold value.
If the input is greater than the threshold then input value is returned, otherwise the threshold value (with same sign as the input) is returned. If the Alternate parameter is set then the value of that is returned.
Or, if the LessThan parameter, is set then opposite logic is applied.
The configuration parameters to the function are as follows:
Threshold - the threshold value (type Double). Mandatory.
Alternate - an alternate output value (type Double).
LessThan - true or false (type Boolean).
| Modifier and Type | Field and Description |
|---|---|
Double |
alternate |
boolean |
lessthan |
Double |
threshold |
disabled, initial, last, linkAlphaComparator, links, linkslist, name, output, parameters, posindex, reset| Constructor and Description |
|---|
ThresholdNeuralFunction(double t) |
ThresholdNeuralFunction(int t) |
ThresholdNeuralFunction(List<Parameters> ps) |
| Modifier and Type | Method and Description |
|---|---|
double |
compute() |
clearParametersHashMap, close, deactivate, getConfigParameter, getDataString, getExternalControlFunction, getInitial, getName, getOutput, getParameter, getParameter, getParameter, getParameterBoolean, getParameterDouble, getParameterInt, getParameterName, getParameterObject, getParametersSet, getParametersSize, getParametersString, getParameterType, getPosindex, getTime, init, isDisabled, pause, post, setConfigLinks, setField, setInitial, setLink, setLinks, setName, setOutput, setParameter, setParameter, setPosindex, stop, verifyConfigurationpublic Double threshold
public Double alternate
public boolean lessthan
public ThresholdNeuralFunction(double t)
public ThresholdNeuralFunction(int t)
public ThresholdNeuralFunction(List<Parameters> ps) throws Exception
Exceptionpublic double compute()
compute in interface NeuralFunctionInterfacecompute in class NeuralFunctionCopyright © 2017. All rights reserved.