com.rapidminer.operator.preprocessing.normalization
Class MinMaxNormalizationModel

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
          extended by com.rapidminer.operator.AbstractModel
              extended by com.rapidminer.operator.preprocessing.PreprocessingModel
                  extended by com.rapidminer.operator.preprocessing.normalization.AbstractNormalizationModel
                      extended by com.rapidminer.operator.preprocessing.normalization.MinMaxNormalizationModel
All Implemented Interfaces:
IOObject, Model, ResultObject, ViewModel, Readable, Reportable, LoggingHandler, java.io.Serializable

public class MinMaxNormalizationModel
extends AbstractNormalizationModel

A simple model which can be used to transform all regular attributes into a value range between the given min and max values.

Author:
Ingo Mierswa, Sebastian Land
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject
AbstractIOObject.InputStreamProvider
 
Constructor Summary
MinMaxNormalizationModel(ExampleSet exampleSet, double min, double max, java.util.HashMap<java.lang.String,Tupel<java.lang.Double,java.lang.Double>> attributeRanges)
          Create a new normalization model.
 
Method Summary
 java.lang.String getName()
          Returns a nicer name.
 Attributes getTargetAttributes(ExampleSet viewParent)
          This method has to return a legal Attributes object containing every Attribute, the view should contain
 double getValue(Attribute targetAttribute, double value)
          This method has to provide the attribute value mapping for the view.
 java.lang.String toString()
          Returns a string representation of this model.
 
Methods inherited from class com.rapidminer.operator.preprocessing.normalization.AbstractNormalizationModel
applyOnData, applyOnData, computeValue
 
Methods inherited from class com.rapidminer.operator.preprocessing.PreprocessingModel
apply, isSupportingAttributeRoles, setParameter, toResultString
 
Methods inherited from class com.rapidminer.operator.AbstractModel
getExtension, getFileDescription, getTrainingHeader, isInTargetEncoding, isUpdatable, updateModel
 
Methods inherited from class com.rapidminer.operator.ResultObjectAdapter
addAction, getActions, getAnnotations, getResultIcon, log, log, logError, logNote, logWarning, toHTML
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.Model
getTrainingHeader, isUpdatable, updateModel
 
Methods inherited from interface com.rapidminer.operator.ResultObject
getActions, getResultIcon
 
Methods inherited from interface com.rapidminer.operator.IOObject
appendOperatorToHistory, copy, getAnnotations, getLog, getProcessingHistory, getSource, setLoggingHandler, setSource, write
 
Methods inherited from interface com.rapidminer.report.Readable
isInTargetEncoding
 

Constructor Detail

MinMaxNormalizationModel

public MinMaxNormalizationModel(ExampleSet exampleSet,
                                double min,
                                double max,
                                java.util.HashMap<java.lang.String,Tupel<java.lang.Double,java.lang.Double>> attributeRanges)
Create a new normalization model.

Method Detail

getTargetAttributes

public Attributes getTargetAttributes(ExampleSet viewParent)
Description copied from interface: ViewModel
This method has to return a legal Attributes object containing every Attribute, the view should contain

Returns:
The attribute object

getValue

public double getValue(Attribute targetAttribute,
                       double value)
Description copied from interface: ViewModel
This method has to provide the attribute value mapping for the view. The views attributes will ask this method for their value.

Parameters:
targetAttribute - the attribute, which asks for his value
value - the value the source attribute had in original data
Returns:
the value the attribute should have in target view

getName

public java.lang.String getName()
Returns a nicer name. Necessary since this model is defined as inner class.

Specified by:
getName in interface ResultObject
Overrides:
getName in class AbstractModel

toString

public java.lang.String toString()
Returns a string representation of this model.

Specified by:
toString in interface Readable
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I