Package samer.mds
Class MDSBase
- java.lang.Object
-
- Viewable
-
- samer.mds.MDSBase
-
- All Implemented Interfaces:
- Task
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.
-
-
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 arrayvoid
dispose()
double[]
getLinkArray()
void
run()
void
setDimensionality(int e)
optimises only first E columns of P E must be less than width of original Pvoid
setLink(int k, int i, int j)
the kth link joint objects i and jvoid
starting()
void
stopping()
-
-
-
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()
-
-