comirva.mlearn
Class SammonsMapping

java.lang.Object
  extended by comirva.mlearn.SammonsMapping

public class SammonsMapping
extends Object


Constructor Summary
SammonsMapping(double[][] datadistances)
           
 
Method Summary
 double getError()
           
 double[][] getLowcoords()
           
 void iterate(int iterations, double threshold, long milliseconds)
          iterates until one of the given constraints is satisfied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SammonsMapping

public SammonsMapping(double[][] datadistances)
Method Detail

iterate

public void iterate(int iterations,
                    double threshold,
                    long milliseconds)
iterates until one of the given constraints is satisfied

Parameters:
iterations - maximum number of iteration
threshold - decrease of error between 2 subsequent iterations is below this value
milliseconds - time tolerated

getError

public double getError()

getLowcoords

public double[][] getLowcoords()