|
||||||||||
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.ContextNode
public class ContextNode
A context node. A context node is a node that has an initial state and that also blends in the prior outputs from its own input nodes with the current output. To cater for simulations, where repeated runs from the same state is required, it is possible to switch it into fixed mode. In fixed mode, the internal state is retained, not updated with new patterns, until out of fixed mode again.
Field Summary | |
---|---|
protected double |
decay
The context node's decay rate |
protected boolean |
fixed
True if the node is in fixed state at present |
protected double |
fixedState
Internal variable used to store fixed state |
protected double |
initialState
The node's initial state |
Fields inherited from class org.joone.structure.AbstractNode |
---|
connections, derivativeFunction, lastDerivative, lastDerivativePattern, lastInputValue, lastOutputValue, lastPattern, order, transportFunction |
Constructor Summary | |
---|---|
ContextNode()
|
Method Summary | |
---|---|
double |
getDecay()
Retrieve the decay rate |
double |
getInitialState()
Retrieve the initial state |
double |
getInputValue(int pattern)
The node's input value at the given pattern number |
boolean |
isFixed()
Retrieve the fixed state of the node |
void |
setDecay(double decay)
Set the context node decay rate |
void |
setFixed(boolean fixed)
Set the fixed state of the node |
void |
setInitialState(double initialState)
Set the initial state |
Methods inherited from class org.joone.structure.AbstractNode |
---|
calculateOrder, getConnections, getDerivative, getOrder, getOutputValue, getTreeNode, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double decay
protected double initialState
protected boolean fixed
protected double fixedState
Constructor Detail |
---|
public ContextNode()
Method Detail |
---|
public void setDecay(double decay)
public double getDecay()
public void setInitialState(double initialState)
public double getInitialState()
public void setFixed(boolean fixed)
public boolean isFixed()
public double getInputValue(int pattern)
getInputValue
in interface Node
getInputValue
in class AbstractNode
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 |