gpalta.core
Class SingleOutput

java.lang.Object
  extended by gpalta.core.Output
      extended by gpalta.core.SingleOutput
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SingleOutput
extends Output

Implements an Output of dimension 1. The actual value is accessed through the x field

See Also:
Serialized Form

Field Summary
 double[] x
          The actual value of the Output.
 
Constructor Summary
SingleOutput(int nSamples)
           
 
Method Summary
 java.lang.Object clone()
          Must implement clone() so Outputs can be cloned witout knowing the actual subclass.
 int getDim()
          Get the dimension (number of scalar outputs per sample) of this Output
 void store(double[] vector)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public final double[] x
The actual value of the Output. It stores the output for all samples if using vectorial evaluation. Otherwise, x will be of length 1 and will store a single value.

Constructor Detail

SingleOutput

public SingleOutput(int nSamples)
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: Output
Must implement clone() so Outputs can be cloned witout knowing the actual subclass. Subclasses must override this to make sure that cloned instances are independent.

Overrides:
clone in class Output
Throws:
java.lang.CloneNotSupportedException

getDim

public int getDim()
Description copied from class: Output
Get the dimension (number of scalar outputs per sample) of this Output

Specified by:
getDim in class Output

store

public void store(double[] vector)