Package samer.mds

Class MDSBase

  • java.lang.Object
    • Viewable
      • samer.mds.MDSBase
  • All Implemented Interfaces:
    Task
    Direct Known Subclasses:
    MDS, NewMDS


    public class MDSBase
    extends Viewable
    implements Task
    MDS base class. Manages a NxE matrix of object positions, an array of links (end point object indices and a distance per link), a stress value and a learning rate, and a buffer which for accumulating the "force" on each object. Client code or subclass must set up link array and implement the actual adaptation algorithm.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MDSBase(Matrix p) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void clearLinks(double[] D)
      link each object to all the others , returns distance array
      void dispose() 
      double[] getLinkArray() 
      void run() 
      void setDimensionality(int e)
      optimises only first E columns of P E must be less than width of original P
      void setLink(int k, int i, int j)
      the kth link joint objects i and j
      void starting() 
      void stopping() 
      • Methods inherited from class java.lang.Object

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

      • MDSBase

        public MDSBase(Matrix p)
    • Method Detail

      • setDimensionality

        public void setDimensionality(int e)
        optimises only first E columns of P E must be less than width of original P
      • clearLinks

        public void clearLinks(double[] D)
        link each object to all the others , returns distance array
      • setLink

        public void setLink(int k,
                            int i,
                            int j)
        the kth link joint objects i and j
      • getLinkArray

        public double[] getLinkArray()
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Task
      • starting

        public void starting()
        Specified by:
        starting in interface Task
      • stopping

        public void stopping()
        Specified by:
        stopping in interface Task
      • run

        public void run()
        Specified by:
        run in interface Task