public class SimpleMatrixInputData extends AbstractSOMLibSparseInputData
Modifier and Type | Field and Description |
---|---|
private double[][] |
matrix |
classInfo, contentType, dataNames, dim, ERROR_MESSAGE_FILE_FORMAT_CORRUPT, featureMatrixCols, featureMatrixRows, isNormalized, meanVector, mqe0, nameCache, numVectors, rand, source, templateVector
inputFileNameSuffix, MISSING_VALUE
Constructor and Description |
---|
SimpleMatrixInputData(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFileNameSuffix() |
static java.lang.String |
getFormatName() |
InputDatum |
getInputDatum(int d)
Get an input datum with a specified index.
|
double[] |
getInputVector(int d)
Get the vector for the input datum of the specified index
|
double |
getValue(int x,
int y)
Returns the value of the y-th feature of input vector x.
|
double |
mqe0(DistanceMetric metric)
Calculates the mean quantisation error of the top-level unit.
|
InputData |
subset(java.lang.String[] names)
Gets a subset of this input data set.
|
classInformation, create, dim, equals, getByNameDistanceSorted, getContentType, getData, getData, getDataIntervals, getDataSource, getDistanceMatrix, getDistances, getFeatureDensities, getFeatureMatrixColumns, getFeatureMatrixRows, getInputDatum, getInputDatum, getInputDatumIndex, getLabel, getLabels, getMaxValue, getMeanVector, getMeanVector, getMinValue, getNearestDistances, getNearestN, getNearestN, getNearestNUnsorted, getRandomInputDatum, initDistanceMatrix, isNormalizedToUnitLength, numVectors, setClassInfo, setTemplateVector, templateVector, transformValues
public InputDatum getInputDatum(int d)
InputData
d
- the index of the input datum.public double[] getInputVector(int d)
InputData
public double getValue(int x, int y)
InputData
public double mqe0(DistanceMetric metric)
InputData
metric
- the metric to use for distance calculation.public InputData subset(java.lang.String[] names)
InputData
names
- the label names of the desired subset data.public static java.lang.String getFormatName()
public static java.lang.String getFileNameSuffix()