comirva.mlearn
Class SammonsMapping_Geodesic
java.lang.Object
comirva.mlearn.SammonsMapping_Geodesic
public class SammonsMapping_Geodesic
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SammonsMapping_Geodesic
public SammonsMapping_Geodesic(double[][] datadistances)
iterate
public void iterate(int iterations,
double threshold,
long milliseconds)
- iterates until one of the given constraints is satisfied
- Parameters:
iterations
- maximum number of iterationthreshold
- decrease of error between 2 subsequent iterations is below this valuemilliseconds
- 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()