public class ContextNode extends AbstractNode
| Modifier and Type | Field and Description |
|---|---|
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
|
connections, derivativeFunction, lastDerivative, lastDerivativePattern, lastInputValue, lastOutputValue, lastPattern, order, transportFunction| Constructor and Description |
|---|
ContextNode() |
| Modifier and Type | Method and Description |
|---|---|
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
|
calculateOrder, getConnections, getDerivative, getOrder, getOutputValue, getTreeNode, setOrderprotected double decay
protected double initialState
protected boolean fixed
protected double fixedState
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 NodegetInputValue in class AbstractNodepattern - the pattern number, 1 for the first patternSubmit Feedback to pmarrone@users.sourceforge.net