org.knime.base.node.preproc.pmml.normalize
Class NormalizerPMMLNodeModel

java.lang.Object
  extended by org.knime.core.node.NodeModel
      extended by org.knime.base.node.preproc.normalize.NormalizerNodeModel
          extended by org.knime.base.node.preproc.pmml.normalize.NormalizerPMMLNodeModel

public class NormalizerPMMLNodeModel
extends NormalizerNodeModel

The NormalizeNodeModel uses the Normalizer to normalize the input DataTable.

Author:
Nicolas Cebron, University of Konstanz
See Also:
Normalizer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.knime.base.node.preproc.normalize.NormalizerNodeModel
NormalizerNodeModel.CalculationResult
 
Field Summary
 
Fields inherited from class org.knime.base.node.preproc.normalize.NormalizerNodeModel
COLUMNS_KEY, DECIMALSCALING_MODE, MINMAX_MODE, MODE_KEY, NEWMAX_KEY, NEWMIN_KEY, NONORM_MODE, ZSCORE_MODE
 
Constructor Summary
NormalizerPMMLNodeModel()
          Creates a new normalizer node model with an optional PMML inport and a PMML model outport.
 
Method Summary
protected  PortObject[] execute(PortObject[] inObjects, ExecutionContext exec)
          Execute method for general port types.
protected  PortObjectSpec[] prepareConfigure(PortObjectSpec[] inSpecs)
           
 
Methods inherited from class org.knime.base.node.preproc.normalize.NormalizerNodeModel
calculate, configure, getColumns, getMode, loadInternals, loadValidatedSettingsFrom, reset, saveInternals, saveSettingsTo, setColumns, updateNumericColumnSelection, validateSettings
 
Methods inherited from class org.knime.core.node.NodeModel
addWarningListener, configure, continueLoop, execute, executeModel, getAvailableFlowVariables, getCredentialsProvider, getInHiLiteHandler, getLoopEndNode, getLoopStartNode, getNrInPorts, getNrOutPorts, getOutgoingFlowObjectStack, getOutHiLiteHandler, getWarningMessage, notifyViews, notifyWarningListeners, onDispose, peekFlowVariableDouble, peekFlowVariableInt, peekFlowVariableString, peekScopeVariableDouble, peekScopeVariableInt, peekScopeVariableString, pushFlowVariableDouble, pushFlowVariableInt, pushFlowVariableString, pushScopeVariableDouble, pushScopeVariableInt, pushScopeVariableString, removeWarningListener, resetAndConfigureLoopBody, setInHiLiteHandler, setWarningMessage, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizerPMMLNodeModel

public NormalizerPMMLNodeModel()
Creates a new normalizer node model with an optional PMML inport and a PMML model outport.

Method Detail

prepareConfigure

protected PortObjectSpec[] prepareConfigure(PortObjectSpec[] inSpecs)
                                     throws InvalidSettingsException
Overrides:
prepareConfigure in class NormalizerNodeModel
Parameters:
inSpecs - An array of DataTableSpecs (as many as this model has inputs).
Returns:
An array of DataTableSpecs (as many as this model has outputs)
Throws:
InvalidSettingsException - if the #configure() failed, that is, the settings are inconsistent with given DataTableSpec elements.

execute

protected PortObject[] execute(PortObject[] inObjects,
                               ExecutionContext exec)
                        throws Exception
Execute method for general port types. The argument objects represent the input objects and are guaranteed to be subclasses of the PortObject classes that are defined through the PortTypes given in the constructor. Similarly, the returned output objects need to comply with their port types object class (otherwise an error is reported by the framework).

For a general description of the execute method refer to the description of the specialized NodeModel.execute(BufferedDataTable[], ExecutionContext) methods as it addresses more use cases.

Overrides:
execute in class NormalizerNodeModel
Parameters:
inObjects - The input objects.
exec - For BufferedDataTable creation and progress.
Returns:
The output objects.
Throws:
Exception - If the node execution fails for any reason.


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.