org.simbrain.gauge.core
Class ProjectSammon

java.lang.Object
  extended by org.simbrain.gauge.core.Projector
      extended by org.simbrain.gauge.core.ProjectSammon

public class ProjectSammon
extends Projector

ProjectSammon.java Implements gradient descent to compute image of Sammon projection.


Field Summary
 
Fields inherited from class org.simbrain.gauge.core.Projector
addMethod, downstairs, theSettings, upstairs
 
Constructor Summary
ProjectSammon()
          Default sammon projector constructor.
ProjectSammon(Settings set)
          Sammon projector constructor.
 
Method Summary
(package private)  double getCurrentCloseness()
           
(package private)  double[][] getD()
           
(package private)  double[][] getDstar()
           
(package private)  double getDstarSum()
           
(package private)  double getE()
           
 double getEpsilon()
           
(package private)  int getHighDimension()
           
(package private)  int getLowDimension()
           
(package private)  int getNumPoints()
           
(package private)  double getPartialSum()
           
(package private)  double[] getXI()
           
(package private)  double[] getXJ()
           
(package private)  ArrayList getYArray()
           
(package private)  double[] getYI()
           
(package private)  double[] getYJ()
           
(package private)  double[] getYM()
           
(package private)  double[] getYN()
           
(package private)  double[] getYNew()
           
 boolean hasDialog()
           
 void init(Dataset up, Dataset down)
          Perform necessary initialization.
 boolean isExtendable()
           
 boolean isIterable()
           
 double iterate()
          Iterate the Sammon algorithm and return currentCloseness.
 void project()
          Default projection constructor.
(package private)  void setCurrentCloseness(double currentCloseness)
           
(package private)  void setD(double[][] d)
           
(package private)  void setDstar(double[][] dstar)
           
(package private)  void setDstarSum(double dstarSum)
           
(package private)  void setE(double e)
           
 void setEpsilon(double d)
           
(package private)  void setHighDimension(int highDimension)
           
(package private)  void setLowDimension(int lowDimension)
           
(package private)  void setNumPoints(int numPoints)
           
(package private)  void setPartialSum(double partSum)
           
(package private)  void setXI(double[] xI)
           
(package private)  void setXJ(double[] xJ)
           
(package private)  void setYArray(ArrayList y)
           
(package private)  void setYI(double[] yI)
           
(package private)  void setYJ(double[] yJ)
           
(package private)  void setYM(double[] yM)
           
(package private)  void setYN(double[] yN)
           
(package private)  void setYNew(double[] yNew)
           
 
Methods inherited from class org.simbrain.gauge.core.Projector
addDatapoint, addUpstairs, checkDatasets, compareDatasets, getAddMethod, getAddMethodIndex, getDownstairs, getPerturbationAmount, getTheSettings, getTolerance, getUpstairs, init, setAddMethod, setDownstairs, setPerturbationAmount, setTheSettings, setTolerance, setUpstairs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectSammon

public ProjectSammon()
Default sammon projector constructor.


ProjectSammon

public ProjectSammon(Settings set)
Sammon projector constructor.

Parameters:
set - projector settings
Method Detail

init

public void init(Dataset up,
                 Dataset down)
Perform necessary initialization.

Overrides:
init in class Projector
Parameters:
up - Upstairs dataset
down - Downstairs dataset

iterate

public double iterate()
Iterate the Sammon algorithm and return currentCloseness.

Specified by:
iterate in class Projector
Returns:
closeness of points

isIterable

public boolean isIterable()
Specified by:
isIterable in class Projector
Returns:
is projection iterable.

isExtendable

public boolean isExtendable()
Specified by:
isExtendable in class Projector
Returns:
is projection extendable.

project

public void project()
Default projection constructor.

Specified by:
project in class Projector

getEpsilon

public double getEpsilon()
Returns:
step size for Sammon map

setEpsilon

public void setEpsilon(double d)
Parameters:
d - step size for Sammon map

setYArray

void setYArray(ArrayList y)
Parameters:
y - The yArray to set.

getYArray

ArrayList getYArray()
Returns:
Returns the yArray.

setXI

void setXI(double[] xI)
Parameters:
xI - The xI to set.

getXI

double[] getXI()
Returns:
Returns the xI.

setXJ

void setXJ(double[] xJ)
Parameters:
xJ - The xJ to set.

getXJ

double[] getXJ()
Returns:
Returns the xJ.

setYI

void setYI(double[] yI)
Parameters:
yI - The yI to set.

getYI

double[] getYI()
Returns:
Returns the yI.

setYJ

void setYJ(double[] yJ)
Parameters:
yJ - The yJ to set.

getYJ

double[] getYJ()
Returns:
Returns the yJ.

setYM

void setYM(double[] yM)
Parameters:
yM - The yM to set.

getYM

double[] getYM()
Returns:
Returns the yM.

setYN

void setYN(double[] yN)
Parameters:
yN - The yN to set.

getYN

double[] getYN()
Returns:
Returns the yN.

setYNew

void setYNew(double[] yNew)
Parameters:
yNew - The yNew to set.

getYNew

double[] getYNew()
Returns:
Returns the yNew.

setDstar

void setDstar(double[][] dstar)
Parameters:
dstar - The dstar to set.

getDstar

double[][] getDstar()
Returns:
Returns the dstar.

setD

void setD(double[][] d)
Parameters:
d - The d to set.

getD

double[][] getD()
Returns:
Returns the d.

setDstarSum

void setDstarSum(double dstarSum)
Parameters:
dstarSum - The dstarSum to set.

getDstarSum

double getDstarSum()
Returns:
Returns the dstarSum.

setPartialSum

void setPartialSum(double partSum)
Parameters:
partSum - The partSum to set.

getPartialSum

double getPartialSum()
Returns:
Returns the partSum.

setCurrentCloseness

void setCurrentCloseness(double currentCloseness)
Parameters:
currentCloseness - The currentCloseness to set.

getCurrentCloseness

double getCurrentCloseness()
Returns:
Returns the currentCloseness.

setE

void setE(double e)
Parameters:
e - The e to set.

getE

double getE()
Returns:
Returns the e.

setLowDimension

void setLowDimension(int lowDimension)
Parameters:
lowDimension - The lowDimension to set.

getLowDimension

int getLowDimension()
Returns:
Returns the lowDimension.

setNumPoints

void setNumPoints(int numPoints)
Parameters:
numPoints - The numPoints to set.

getNumPoints

int getNumPoints()
Returns:
Returns the numPoints.

setHighDimension

void setHighDimension(int highDimension)
Parameters:
highDimension - The highDimension to set.

getHighDimension

int getHighDimension()
Returns:
Returns the highDimension.

hasDialog

public boolean hasDialog()
Specified by:
hasDialog in class Projector
Returns:
true true if current projector has a dialog.
See Also:
Projector