|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.data.AbstractSOMLibSparseInputData
at.tuwien.ifs.somtoolbox.data.SOMLibSparseInputData
at.tuwien.ifs.somtoolbox.data.normalisation.AbstractNormaliser
at.tuwien.ifs.somtoolbox.data.normalisation.MinMaxNormaliser
public class MinMaxNormaliser
Min-max normalisation, normalises the attributes between 0 and 1.
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, contentType, 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,
java.lang.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, getDataAsMatrix, getDimensionality, getInputDatum, getInputVector, getValue, init, initDataStructures, initMatrix, main, mqe0, openFile, parse, parseDouble, readVectorFile, setLabel, setMatrixValue, subset |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
double[] minValues
double[] maxValues
Constructor Detail |
---|
public MinMaxNormaliser()
Method Detail |
---|
public void preReading()
preReading
in class AbstractNormaliser
public void postReading() throws java.io.IOException
postReading
in class AbstractNormaliser
java.io.IOException
protected void processLine(int index, java.lang.String[] lineElements) throws java.lang.Exception
SOMLibSparseInputData
processLine
in class SOMLibSparseInputData
index
- the line indexlineElements
- the line elements, split by the delimeters
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |