at.tuwien.ifs.somtoolbox.data.normalisation
Class MinMaxNormaliser

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.data.AbstractSOMLibSparseInputData
      extended by at.tuwien.ifs.somtoolbox.data.SOMLibSparseInputData
          extended by at.tuwien.ifs.somtoolbox.data.normalisation.AbstractNormaliser
              extended by at.tuwien.ifs.somtoolbox.data.normalisation.MinMaxNormaliser
All Implemented Interfaces:
InputData

public class MinMaxNormaliser
extends AbstractNormaliser

Min-max normalisation, normalises the attributes between 0 and 1.

Version:
$Id: MinMaxNormaliser.java 3358 2010-02-11 14:35:07Z mayer $
Author:
Rudolf Mayer

Field Summary
(package private)  double[] maxValues
           
(package private)  double[] minValues
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.data.normalisation.AbstractNormaliser
writer
 
Fields inherited from class at.tuwien.ifs.somtoolbox.data.SOMLibSparseInputData
data, DEFAULT_NORMALISED, DEFAULT_NUM_CACHE_BLOCKS, DEFAULT_RANDOM_SEED, DEFAULT_SPARSE, INPUT_VECTOR_FILE_FORMAT_CORRUPT_MESSAGE, nonZeros, sparse
 
Fields inherited from class at.tuwien.ifs.somtoolbox.data.AbstractSOMLibSparseInputData
classInfo, content_subtype, content_type, dataNames, dim, ERROR_MESSAGE_FILE_FORMAT_CORRUPT, featureMatrixCols, featureMatrixRows, isNormalized, meanVector, mqe0, nameCache, numVectors, rand, source, templateVector
 
Fields inherited from interface at.tuwien.ifs.somtoolbox.data.InputData
inputFileNameSuffix, MISSING_VALUE
 
Constructor Summary
MinMaxNormaliser()
           
 
Method Summary
 void postReading()
           
 void preReading()
           
protected  void processLine(int index, String[] lineElements)
          Process a single line of the input vector file.
 
Methods inherited from class at.tuwien.ifs.somtoolbox.data.normalisation.AbstractNormaliser
normalise
 
Methods inherited from class at.tuwien.ifs.somtoolbox.data.SOMLibSparseInputData
addInstance, getDimensionality, getInputDatum, getInputVector, getValue, init, initDataStructures, initMatrix, main, mqe0, openFile, parseDouble, readVectorFile, setLabel, setMatrixValue, subset
 
Methods inherited from class at.tuwien.ifs.somtoolbox.data.AbstractSOMLibSparseInputData
classInformation, create, dim, equals, getByNameDistanceSorted, getContentSubType, getContentType, getData, getData, getDataIntervals, getDataSource, getDistanceMatrix, getDistances, getFeatureDensities, getFeatureMatrixColumns, getFeatureMatrixRows, getFileNameSuffix, getFormatName, getInputDatum, getInputDatum, getInputDatumIndex, getLabel, getLabels, getMeanVector, getMeanVector, getNearestN, getNearestN, getNearestNUnsorted, getRandomInputDatum, initDistanceMatrix, isNormalizedToUnitLength, numVectors, setClassInfo, setTemplateVector, templateVector, transformValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minValues

double[] minValues

maxValues

double[] maxValues
Constructor Detail

MinMaxNormaliser

public MinMaxNormaliser()
Method Detail

preReading

public void preReading()
Specified by:
preReading in class AbstractNormaliser

postReading

public void postReading()
                 throws IOException
Specified by:
postReading in class AbstractNormaliser
Throws:
IOException

processLine

protected void processLine(int index,
                           String[] lineElements)
                    throws Exception
Description copied from class: SOMLibSparseInputData
Process a single line of the input vector file.

Overrides:
processLine in class SOMLibSparseInputData
Parameters:
index - the line index
lineElements - the line elements, split by the delimeters
Throws:
Exception