de.aitools.iv.mds.core
Interface MDS

All Known Implementing Classes:
Chalmers1996MDS, Chalmers2003MDS, Jourdan2004MDS, Jourdan2004MultiscaleMDS, SpringModelMDS, Stein2006MDS

public interface MDS

Interface for mds algorithms.

Author:
Anita

Method Summary
 java.util.HashMap<java.lang.String,java.lang.Object> getConstants()
          Returns a HashMap with all available constant/parameter - value mappings for this algorithm.
 java.util.HashMap<java.lang.String,java.lang.Object> getStatistics()
          Returns a map with constants and parameters including name of the algorithm and element number.
 double getStress()
          Return the Stress-1 value of the point configuration.
 double[][] layOut(int[][] offs, double[][] vals)
          Returns an array of coordinates corresponding to the input indices.
 void setConstants(java.util.HashMap<java.lang.String,java.lang.Object> constants)
          Offers a possibility to overwrite the parameters and constants which are read from the algorithm-specific properties-file.
 

Method Detail

layOut

double[][] layOut(int[][] offs,
                  double[][] vals)
Returns an array of coordinates corresponding to the input indices. The dimension of the array is defined by the algorithm specific parameters.

Parameters:
offs - array of offset values
vals - array of corresponding values
Returns:
array representing point coordinates

getStress

double getStress()
Return the Stress-1 value of the point configuration.

Returns:
stress value of point configuration

getStatistics

java.util.HashMap<java.lang.String,java.lang.Object> getStatistics()
Returns a map with constants and parameters including name of the algorithm and element number.

Returns:
constants and parameters of the algorithm

setConstants

void setConstants(java.util.HashMap<java.lang.String,java.lang.Object> constants)
Offers a possibility to overwrite the parameters and constants which are read from the algorithm-specific properties-file. Keys which are not recognized for constants or parameters are ignored.

Parameters:
constants - HashMap with mappings of constant names to values.

getConstants

java.util.HashMap<java.lang.String,java.lang.Object> getConstants()
Returns a HashMap with all available constant/parameter - value mappings for this algorithm.

Returns:
available constants and values for this algorithm