org.knime.base.node.preproc.autobinner.pmml
Class PMMLDiscretize

java.lang.Object
  extended by org.knime.base.node.preproc.autobinner.pmml.PMMLDiscretize

public final class PMMLDiscretize
extends Object

Encapsulates a DiscretizeBin in PMML.

Author:
Heiko Hofer

Constructor Summary
PMMLDiscretize(String field, List<PMMLDiscretizeBin> bins)
           
PMMLDiscretize(String field, String mapMissingTo, String defaultValue, String dataType, List<PMMLDiscretizeBin> bins)
           
 
Method Summary
 List<PMMLDiscretizeBin> getBins()
           
 String getDataType()
           
 String getDefaultValue()
           
 String getField()
           
 String getMapMissingTo()
           
(package private)  void writePMML(TransformerHandler handler)
          Writes the PMML to the given handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMMLDiscretize

public PMMLDiscretize(String field,
                      List<PMMLDiscretizeBin> bins)
Parameters:
field - the column that is discretized
bins - the bins

PMMLDiscretize

public PMMLDiscretize(String field,
                      String mapMissingTo,
                      String defaultValue,
                      String dataType,
                      List<PMMLDiscretizeBin> bins)
Parameters:
field - the column that is discretized
mapMissingTo - value of output when input is the missing value
defaultValue - value of output when input does not match any interval
dataType - data type
bins - the bins
Method Detail

getField

public String getField()
Returns:
the field

getMapMissingTo

public String getMapMissingTo()
Returns:
the mapMissingTo

getDefaultValue

public String getDefaultValue()
Returns:
the defaultValue

getDataType

public String getDataType()
Returns:
the dataType

getBins

public List<PMMLDiscretizeBin> getBins()
Returns:
the bins

writePMML

void writePMML(TransformerHandler handler)
         throws SAXException
Writes the PMML to the given handler.

Parameters:
handler - the transformation handler
Throws:
SAXException - if anything goes wrong while serializing the model


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.