org.knime.base.data.normalize
Class PMMLNormalizeTranslator

java.lang.Object
  extended by org.knime.base.data.normalize.PMMLNormalizeTranslator
All Implemented Interfaces:
PMMLPreprocTranslator

public class PMMLNormalizeTranslator
extends Object
implements PMMLPreprocTranslator

Author:
Dominik Morent, KNIME.com, Zurich, Switzerland

Constructor Summary
PMMLNormalizeTranslator()
          Creates a new empty translator to be initialized by the #initializeFrom(LocalTransformations, boolean) or #initializeFrom(TransformationDictionary, boolean) method.
PMMLNormalizeTranslator(AffineTransConfiguration trans, DerivedFieldMapper mapper)
          Creates an initialized translator that can export its configuration.
 
Method Summary
 org.dmg.pmml40.LocalTransformationsDocument.LocalTransformations exportToLocalTrans()
          Exports the translators state to a new LocalTransformations element.
 org.dmg.pmml40.TransformationDictionaryDocument.TransformationDictionary exportToTransDict()
          Exports the translators state to a new TransformationDictionary element.
 AffineTransConfiguration getAffineTransConfig()
          Builds a configuration object for a AffineTransTable.
 List<Integer> initializeFrom(org.dmg.pmml40.DerivedFieldDocument.DerivedField[] derivedFields)
          Initializes the translator based on a derived field array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMMLNormalizeTranslator

public PMMLNormalizeTranslator()
Creates a new empty translator to be initialized by the #initializeFrom(LocalTransformations, boolean) or #initializeFrom(TransformationDictionary, boolean) method.


PMMLNormalizeTranslator

public PMMLNormalizeTranslator(AffineTransConfiguration trans,
                               DerivedFieldMapper mapper)
Creates an initialized translator that can export its configuration.

Parameters:
trans - the affine trans configuration * @param mapper mapping data column names to PMML derived field names and vice versa
mapper - mapping data column names to PMML derived field names and vice versa
Method Detail

getAffineTransConfig

public AffineTransConfiguration getAffineTransConfig()
Builds a configuration object for a AffineTransTable.

Returns:
the affine trans configuration

exportToTransDict

public org.dmg.pmml40.TransformationDictionaryDocument.TransformationDictionary exportToTransDict()
Exports the translators state to a new TransformationDictionary element.

Specified by:
exportToTransDict in interface PMMLPreprocTranslator
Returns:
the transformation dictionary containing the preprocessing elements

exportToLocalTrans

public org.dmg.pmml40.LocalTransformationsDocument.LocalTransformations exportToLocalTrans()
Exports the translators state to a new LocalTransformations element.

Specified by:
exportToLocalTrans in interface PMMLPreprocTranslator
Returns:
the local transformations containing the preprocessing elements

initializeFrom

public List<Integer> initializeFrom(org.dmg.pmml40.DerivedFieldDocument.DerivedField[] derivedFields)
Initializes the translator based on a derived field array.

Specified by:
initializeFrom in interface PMMLPreprocTranslator
Parameters:
derivedFields - the derived fields to initialize from
Returns:
a list with the indices of all derived field entries that could be consumed


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.