at.tuwien.ifs.somtoolbox.data
Class SOMPAKInputData

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.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

Field Summary
static String INDICATOR_COMPONENTS
           
 
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
SOMPAKInputData(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
 

Field Detail

INDICATOR_COMPONENTS

public static final String INDICATOR_COMPONENTS
See Also:
Constant Field Values
Constructor Detail

SOMPAKInputData

public SOMPAKInputData(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()