public abstract class AbstractMemoryInputVectorDistanceMatrix extends InputVectorDistanceMatrix
RandomAccessFileInputVectorDistanceMatrix
instead).Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_TYPE |
inputLabels, metric, numVectors
Constructor and Description |
---|
AbstractMemoryInputVectorDistanceMatrix(InputData data,
DistanceMetric metric)
Constructs the distance matrix by computing the distances on the fly.
|
AbstractMemoryInputVectorDistanceMatrix(java.lang.String fileName)
Reads the distance matrix from an ASCII file, and stores it in memory.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
initStorage() |
protected abstract void |
setValue(int x,
int y,
double value) |
columns, equals, flatArraySize, getDistance, getDistances, getDistancesFlat, getDistancesFlatAsMatrix, getInputLabels, getMetric, getNNearest, initFromFile, numVectors, rows, toString
public static final java.lang.String FILE_TYPE
public AbstractMemoryInputVectorDistanceMatrix(InputData data, DistanceMetric metric) throws MetricException
AbstractMemoryInputVectorDistanceMatrix(String)
)MetricException
public AbstractMemoryInputVectorDistanceMatrix(java.lang.String fileName) throws java.io.IOException, SOMToolboxException
java.io.IOException
SOMToolboxException