|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.tuwien.ifs.somtoolbox.data.AbstractSOMLibSparseInputData
at.tuwien.ifs.somtoolbox.data.SimpleMatrixInputData
public class SimpleMatrixInputData
Reads data from a simple matrix file. Rows are separated by newlines, and columns by spaces or tabs.
| Field Summary | |
|---|---|
private double[][] |
matrix
|
| 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 | |
|---|---|
SimpleMatrixInputData(String fileName)
|
|
| Method Summary | |
|---|---|
static String |
getFileNameSuffix()
|
static 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(String[] names)
Gets a subset of this input data set. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double[][] matrix
| Constructor Detail |
|---|
public SimpleMatrixInputData(String fileName)
| Method Detail |
|---|
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(String[] names)
InputData
names - the label names of the desired subset data.
public static String getFormatName()
public static String getFileNameSuffix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||