gpalta.nodes
Class MinMax

java.lang.Object
  extended by gpalta.nodes.Node
      extended by gpalta.nodes.MinMax
All Implemented Interfaces:
NodeParent, java.io.Serializable, java.lang.Cloneable

public class MinMax
extends Node

Created by IntelliJ IDEA. User: nvn Date: 05-08-2006 Time: 12:25:52 AM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Constructor Summary
MinMax()
           
 
Method Summary
 double eval(DataHolder data)
          Evaluate the Node for a sinlge sample.
 void evalVect(double[] outVect, double[][] kidOutVect, DataHolder data)
          Evaluate the Node for all samples (vectorial evaluation).
 void evalVect(Output out, TempOutputFactory tempOutputFactory, DataHolder data)
          Evaluate a Node for all samples (vectorial evaluation), using Output objects for storing the results.
 java.lang.String name()
          Get the Node's short name (such as "plus", "minus", "x1", etc)
 int nKids()
          Read the number of kids of the Node
 
Methods inherited from class gpalta.nodes.Node
clone, deepClone, getCurrentDepth, getKid, getMaxDepthFromHere, getNSubNodes, getParent, getWhichKidOfParent, init, newKids, parse, setCurrentDepth, setKid, setMaxDepthFromHere, setNSubNodes, setParent, setTypeOfKids, setWhichKidOfParent, toString, typeOfKids
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MinMax

public MinMax()
Method Detail

eval

public double eval(DataHolder data)
Description copied from class: Node
Evaluate the Node for a sinlge sample. All Nodes must override this method. The Node is responsible for evaluating its children, if any.

Specified by:
eval in class Node
Returns:
The output of the Node

evalVect

public void evalVect(Output out,
                     TempOutputFactory tempOutputFactory,
                     DataHolder data)
Description copied from class: Node
Evaluate a Node for all samples (vectorial evaluation), using Output objects for storing the results. Override this method only if the Node has a special behabior with respect to multiple dimension outputs

Overrides:
evalVect in class Node

evalVect

public void evalVect(double[] outVect,
                     double[][] kidOutVect,
                     DataHolder data)
Description copied from class: Node
Evaluate the Node for all samples (vectorial evaluation). All Nodes must override this method

Specified by:
evalVect in class Node
Parameters:
outVect - The array where the outout must be stored
kidOutVect - A matrix holding the outputs of this Node's kids. Each row holds the output for each kid
data - The problem's data

nKids

public int nKids()
Description copied from class: Node
Read the number of kids of the Node

Specified by:
nKids in interface NodeParent
Specified by:
nKids in class Node
Returns:
The number of kids this Node has

name

public java.lang.String name()
Description copied from class: Node
Get the Node's short name (such as "plus", "minus", "x1", etc)

Specified by:
name in class Node
Returns:
The Node's name