at.tuwien.ifs.somtoolbox.data
Class ESOMInputData
java.lang.Object
at.tuwien.ifs.somtoolbox.data.AbstractSOMLibSparseInputData
at.tuwien.ifs.somtoolbox.data.SOMLibSparseInputData
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
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 |
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 |
ESOMInputData
public ESOMInputData(String vectorFileName)
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()