public class WeightedExclusiveNeuralFunction extends NeuralFunction
Exclusive selection of a value (weighted) from a set of inputs.
The first non-zero, and not equal to infinity, value in a list of inputs is selected as the output, and weighted.
The configuration parameters to the function are as follows:
Weights - a comma-separated string of the weights (mandatory).
| Modifier and Type | Field and Description |
|---|---|
Boolean |
infinity |
String |
weights |
disabled, initial, last, linkAlphaComparator, links, linkslist, name, output, parameters, posindex, reset| Constructor and Description |
|---|
WeightedExclusiveNeuralFunction() |
WeightedExclusiveNeuralFunction(List<Parameters> ps) |
| Modifier and Type | Method and Description |
|---|---|
double |
compute() |
void |
init() |
void |
setParameter(String par) |
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, setPosindex, stop, verifyConfigurationpublic WeightedExclusiveNeuralFunction()
public WeightedExclusiveNeuralFunction(List<Parameters> ps) throws Exception
Exceptionpublic void init()
throws Exception
init in class BaseNeuralFunctionExceptionpublic double compute()
compute in interface NeuralFunctionInterfacecompute in class NeuralFunctionpublic void setParameter(String par) throws Exception
setParameter in interface NeuralFunctionInterfacesetParameter in class BaseNeuralFunctionExceptionCopyright © 2017. All rights reserved.