de.unihalle.informatik.Alida.demo
Class ALDPCAOp

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDOperator
      extended by de.unihalle.informatik.Alida.demo.ALDPCAOp
All Implemented Interfaces:
ALDConfigurationValidator

@ALDAOperator(genericExecutionMode=ALL,
              level=APPLICATION)
public class ALDPCAOp
extends ALDOperator

Demo operator computing the PCA for experimental data.

The result is again of type experimental data where the sub experiments are projections into the subspace computed by the PCA.

Author:
posch

Nested Class Summary
 
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
ALDOperator.HidingMode
 
Field Summary
private  ExperimentalData experiment
          Input data
private  java.lang.Integer numComponents
          Number of components to be used for the sub space to project into.
private  ExperimentalData result
          Experiment with sub experiments are projections into the subspace computed by the PCA
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
completeDAG, name, portHashAccess, verbose, versionProvider
 
Constructor Summary
ALDPCAOp()
          Default constructor.
ALDPCAOp(ExperimentalData _experiment)
          Constructor.
 
Method Summary
 ExperimentalData getExperiment()
          Get value of experiment.
 java.lang.Integer getNumComponents()
           
 ExperimentalData getResult()
          Get value of result.
protected  void operate()
          This method does the actual work and needs to be implemented by every subclass.
 void setExperiment(ExperimentalData value)
          Set value of data.
 void setNumComponents(java.lang.Integer numComponents)
           
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
deserializeFromXmlFile, fieldContained, getALDPortHashAccessKey, getConstructionMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, isConfigured, parametersToXmlObject, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, runOp, runOp, runOp, serializeToXmlFile, setConstructionMode, setName, setParameter, setParametersFromXml, setParametersFromXml, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory, writeParametersToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

experiment

@Parameter(label="Experimental data",
           required=true,
           direction=IN,
           description="Experimental data to subject to PCA")
private ExperimentalData experiment
Input data


numComponents

@Parameter(label="Number of components",
           direction=IN,
           description="Number of components to be used for the sub space")
private java.lang.Integer numComponents
Number of components to be used for the sub space to project into.


result

@Parameter(label="Normalized experiment",
           direction=OUT,
           description="Normalized experiment")
private transient ExperimentalData result
Experiment with sub experiments are projections into the subspace computed by the PCA

Constructor Detail

ALDPCAOp

public ALDPCAOp()
         throws ALDOperatorException
Default constructor.

Throws:
ALDOperatorException

ALDPCAOp

public ALDPCAOp(ExperimentalData _experiment)
         throws ALDOperatorException
Constructor.

Parameters:
experiment - Experimental data
Throws:
ALDOperatorException
Method Detail

getExperiment

public ExperimentalData getExperiment()
Get value of experiment. Explanation: Experimental data to be normalized.

Returns:
value of data

getNumComponents

public java.lang.Integer getNumComponents()
Returns:
the numComponents

getResult

public ExperimentalData getResult()
Get value of result. Explanation: Normalized experiment.

Returns:
value of result

operate

protected void operate()
                throws ALDOperatorException,
                       ALDProcessingDAGException
Description copied from class: ALDOperator
This method does the actual work and needs to be implemented by every subclass.

Specified by:
operate in class ALDOperator
Throws:
ALDOperatorException
ALDProcessingDAGException

setExperiment

public void setExperiment(ExperimentalData value)
Set value of data. Explanation: Experimental data to be normalized.

Parameters:
value - New value of data

setNumComponents

public void setNumComponents(java.lang.Integer numComponents)
Parameters:
numComponents - the numComponents to set