connections, derivativeFunction, lastDerivative, lastDerivativePattern, lastInputValue, lastOutputValue, lastPattern, order, transportFunction
Constructor and Description |
---|
BiasNode()
The default bias node that fires 1s all the time
|
BiasNode(double bias)
A bias node that fires the given value each time
|
Modifier and Type | Method and Description |
---|---|
double |
getInputValue(int pattern)
The node's input value which is simply the bias
|
double |
getOutputValue(int pattern)
Retrieve the output value, which is the bias
|
setInputValue
calculateOrder, getConnections, getDerivative, getOrder, getTreeNode, setOrder
public BiasNode()
public BiasNode(double bias)
public double getInputValue(int pattern)
getInputValue
in interface Node
getInputValue
in class AbstractNode
pattern
- the pattern number, 1 for the first patternpublic double getOutputValue(int pattern)
getOutputValue
in interface Node
getOutputValue
in class InputNode
pattern
- the pattern number, 1 for the first patternSubmit Feedback to pmarrone@users.sourceforge.net