public class WeightedSumNeuralFunction extends NeuralFunction
The weighted sum of a set of inputs.
The sum of inputs multiplied by a weight value associated with each.
The configuration parameters to the function are as follows:
Weights - a comma-separated string of the weights (mandatory).
Absolute - a boolean flag defining if the absolute value of inputs are
taken.
Infinity - a boolean flag indicating that the output should be
infinity if all the inputs are infinity, otherwise the output will be zero.
Max - a limit to the output value.
| Modifier and Type | Field and Description |
|---|---|
Boolean |
absolute |
Boolean |
infinity |
Double |
max |
String |
weights |
disabled, initial, last, linkAlphaComparator, links, linkslist, name, output, parameters, posindex, reset| Constructor and Description |
|---|
WeightedSumNeuralFunction() |
WeightedSumNeuralFunction(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 String weights
public Boolean absolute
public Boolean infinity
public Double max
public WeightedSumNeuralFunction(List<Parameters> ps) throws Exception
Exceptionpublic void init()
throws Exception
init in class BaseNeuralFunctionExceptionpublic double compute()
throws Exception
compute in interface NeuralFunctionInterfacecompute in class NeuralFunctionExceptionpublic void setParameter(String par) throws Exception
setParameter in interface NeuralFunctionInterfacesetParameter in class BaseNeuralFunctionExceptionCopyright © 2017. All rights reserved.