Package samer.mds

Class NewMDS.Laplacian

  • java.lang.Object
    • samer.mds.NewMDS.Laplacian
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Laplacian

        public Laplacian(int E)
    • 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 interface NewMDS.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 interface NewMDS.Stress
      • get

        public double get()
        return last stress value
        Specified by:
        get in interface NewMDS.Stress