Package samer.mds
Class NewMDS.Laplacian
- java.lang.Object
-
- samer.mds.NewMDS.Laplacian
-
- All Implemented Interfaces:
- NewMDS.Stress
- Enclosing class:
- NewMDS
public static class NewMDS.Laplacian extends java.lang.Object implements NewMDS.Stress
-
-
Constructor Summary
Constructors Constructor and Description Laplacian(int E)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
add(double target, double[] x, double[] y, double[] g)
add stress due to link from x to y.double
done()
finish accumulating stress terms: reset accumulators for next iteration and return normalised stress (ie per link)double
get()
return last stress value
-
-
-
Method Detail
-
add
public boolean add(double target, double[] x, double[] y, double[] g)
add stress due to link from x to y. Force in link is returned in g. Target is assumed to be a length measured according to a 1-norm.- Specified by:
add
in interfaceNewMDS.Stress
-
done
public double done()
finish accumulating stress terms: reset accumulators for next iteration and return normalised stress (ie per link)- Specified by:
done
in interfaceNewMDS.Stress
-
get
public double get()
return last stress value- Specified by:
get
in interfaceNewMDS.Stress
-
-