public class WeightedMeanNeuralFunction extends NeuralFunction
The mean of a weighted sum of inputs.
The configuration parameters to the function are as follows:
Weights - a comma-separated string of the weights (mandatory).
| Modifier and Type | Field and Description |
|---|---|
String |
absolute |
String |
weights |
disabled, initial, last, linkAlphaComparator, links, linkslist, name, output, parameters, posindex, reset| Constructor and Description |
|---|
WeightedMeanNeuralFunction() |
WeightedMeanNeuralFunction(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 WeightedMeanNeuralFunction()
public WeightedMeanNeuralFunction(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.