comirva.mlearn
Class SammonsMapping_Geodesic

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

public class SammonsMapping_Geodesic
extends Object


Constructor Summary
SammonsMapping_Geodesic(double[][] datadistances)
           
 
Method Summary
static double geoDist(double[] p1, double[] p2)
           
 double getError()
           
static double[][] getGeodesicDistanceMatrix(double[][] vectors)
           
 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_Geodesic

public SammonsMapping_Geodesic(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

getGeodesicDistanceMatrix

public static double[][] getGeodesicDistanceMatrix(double[][] vectors)

geoDist

public static double geoDist(double[] p1,
                             double[] p2)

getError

public double getError()

getLowcoords

public double[][] getLowcoords()