at.tuwien.ifs.somtoolbox.data
Class ESOMInputData

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.ESOMInputData
All Implemented Interfaces:
InputData

public class ESOMInputData
extends SOMLibSparseInputData

Reads a input data file in the ESOM format. For details on the file-format specification, see http://databionic-esom.sourceforge.net/user.html#File_formats.

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

Field Summary
 
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
ESOMInputData(String vectorFileName)
           
 
Method Summary
static String getFileNameSuffix()
           
static String getFormatName()
           
protected  void readVectorFile(String vectorFileName, boolean sparse)
          Reads the input data from the given file, which has to follow the Input Vector File specification.
 
Methods inherited from class at.tuwien.ifs.somtoolbox.data.SOMLibSparseInputData
addInstance, getDimensionality, getInputDatum, getInputVector, getValue, init, initDataStructures, initMatrix, main, mqe0, openFile, parseDouble, processLine, 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, 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
 

Constructor Detail

ESOMInputData

public ESOMInputData(String vectorFileName)
Method Detail

readVectorFile

protected void readVectorFile(String vectorFileName,
                              boolean sparse)
Description copied from class: SOMLibSparseInputData
Reads the input data from the given file, which has to follow the Input Vector File specification. Additionally calculates the AbstractSOMLibSparseInputData.meanVector and creates the AbstractSOMLibSparseInputData.nameCache for faster index search.

Overrides:
readVectorFile in class SOMLibSparseInputData
Parameters:
vectorFileName - the name of the input vector file.

getFileNameSuffix

public static String getFileNameSuffix()

getFormatName

public static String getFormatName()