at.tuwien.ifs.somtoolbox.data
Class SOMPAKInputData
java.lang.Object
at.tuwien.ifs.somtoolbox.data.AbstractSOMLibSparseInputData
at.tuwien.ifs.somtoolbox.data.SOMLibSparseInputData
at.tuwien.ifs.somtoolbox.data.SOMPAKInputData
- All Implemented Interfaces:
- InputData
public class SOMPAKInputData
- extends SOMLibSparseInputData
This class reads input vector data from files in the SOMPak format, as provided by the MATLAB SOMToolbox. See
http://www.cis.hut.fi/projects/somtoolbox/package/docs2/som_read_data.html for format details.
- Version:
- $Id: SOMPAKInputData.java 3583 2010-05-21 10:07:41Z 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 |
INDICATOR_COMPONENTS
public static final String INDICATOR_COMPONENTS
- See Also:
- Constant Field Values
SOMPAKInputData
public SOMPAKInputData(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()