EDU.gatech.cc.is.clay
Class v_WinnerTakeAll_va
java.lang.Object
|
+--EDU.gatech.cc.is.clay.Node
|
+--EDU.gatech.cc.is.clay.NodeVec2
|
+--EDU.gatech.cc.is.clay.v_WinnerTakeAll_va
- public class v_WinnerTakeAll_va
- extends NodeVec2
Combine an array of embedded schemas using
a winner-take-all policy.
Configuration is done by setting the values of the embedded[]
weights[] arrays.
For detailed information on how to configure behaviors, see the
Clay page.
Copyright
(c)1997, 1998 Tucker Balch
Field Summary |
static boolean |
DEBUG
Turn debug printing on or off. |
NodeVec2[] |
embedded
The embedded nodes to multiply by the weights and sum. |
static int |
MAX_COMPONENTS
Maximum number of components of an v_WinnerTakeAll_va node. |
double[] |
weights
The weights to multiply the nodes by. |
Method Summary |
Vec2 |
Value(long timestamp)
Return a Vec2 representing the greatest of the embedded
nodes. |
Methods inherited from class EDU.gatech.cc.is.clay.Node |
initTrial |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DEBUG
public static final boolean DEBUG
- Turn debug printing on or off.
MAX_COMPONENTS
public static final int MAX_COMPONENTS
- Maximum number of components of an v_WinnerTakeAll_va node.
embedded
public NodeVec2[] embedded
- The embedded nodes to multiply by the weights and sum.
weights
public double[] weights
- The weights to multiply the nodes by.
v_WinnerTakeAll_va
public v_WinnerTakeAll_va()
- Instantiate a v_WinnerTakeAll_va node.
Value
public Vec2 Value(long timestamp)
- Return a Vec2 representing the greatest of the embedded
nodes.
- Overrides:
- Value in class NodeVec2
- Parameters:
timestamp
- long, only get new information
if timestamp > than last call
or timestamp == -1.- Returns:
- the vector weighted sum.