|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.structure.AbstractNode
org.joone.structure.InputNode
org.joone.structure.BiasNode
public class BiasNode
A bias node. A bias node is simply an input node that fires a constant, default 1, every time it is asked for an output value.
Field Summary |
---|
Fields inherited from class org.joone.structure.AbstractNode |
---|
connections, derivativeFunction, lastDerivative, lastDerivativePattern, lastInputValue, lastOutputValue, lastPattern, order, transportFunction |
Constructor Summary | |
---|---|
BiasNode()
The default bias node that fires 1s all the time |
|
BiasNode(double bias)
A bias node that fires the given value each time |
Method Summary | |
---|---|
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 |
Methods inherited from class org.joone.structure.InputNode |
---|
setInputValue |
Methods inherited from class org.joone.structure.AbstractNode |
---|
calculateOrder, getConnections, getDerivative, getOrder, getTreeNode, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BiasNode()
public BiasNode(double bias)
Method Detail |
---|
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 pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |