de.aitools.iv.mds.core
Class SpringModelMDS

java.lang.Object
  extended by de.aitools.iv.mds.core.AbstractSpringMDS
      extended by de.aitools.iv.mds.core.SpringModelMDS
All Implemented Interfaces:
MDS

public class SpringModelMDS
extends AbstractSpringMDS
implements MDS

Author:
Anita

Constructor Summary
SpringModelMDS(EndCriteria ec, Measure hdm)
          Creates a new instance of SpringModelMDS with an EndCriteria and a Measure to calculate the (dis)similartiy between high-dimensional objects.
 
Method Summary
 java.util.HashMap<java.lang.String,java.lang.Object> getConstants()
          Returns constants of algorithm.
 java.util.HashMap<java.lang.String,java.lang.Object> getStatistics()
          Returns information of algorithm.
 double[][] layOut(int[][] offs, double[][] vals)
          Takes high-dimensional vectors and returns an array with points corresponding to the input indices.
 void setConstants(java.util.HashMap<java.lang.String,java.lang.Object> constants)
          Sets constants of algorithm.
 
Methods inherited from class de.aitools.iv.mds.core.AbstractSpringMDS
getStress
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.aitools.iv.mds.core.MDS
getStress
 

Constructor Detail

SpringModelMDS

public SpringModelMDS(EndCriteria ec,
                      Measure hdm)
Creates a new instance of SpringModelMDS with an EndCriteria and a Measure to calculate the (dis)similartiy between high-dimensional objects.

Parameters:
ec - EndCriteria for algorithm
hdm - measure between high-dimensional objects to be used
Method Detail

layOut

public double[][] layOut(int[][] offs,
                         double[][] vals)
Takes high-dimensional vectors and returns an array with points corresponding to the input indices.

Specified by:
layOut in interface MDS
Parameters:
offs - 2-dimensional int array with offsets of vectors
vals - 2-dimensional double array with corresponding values
Returns:
2-dimensional double array with point coordinates

getStatistics

public java.util.HashMap<java.lang.String,java.lang.Object> getStatistics()
Returns information of algorithm.

Specified by:
getStatistics in interface MDS
Returns:
HashMap with additional information about the algorithm

setConstants

public void setConstants(java.util.HashMap<java.lang.String,java.lang.Object> constants)
Sets constants of algorithm.

Specified by:
setConstants in interface MDS
Parameters:
constants - HashMap with constant names as keys and corresponding values.

getConstants

public java.util.HashMap<java.lang.String,java.lang.Object> getConstants()
Returns constants of algorithm.

Specified by:
getConstants in interface MDS
Returns:
HashMap with constant names as keys and corresponding values.