org.simbrain.gauge.core
Class Settings

java.lang.Object
  extended by org.simbrain.gauge.core.Settings

public class Settings
extends Object

Settings stores gauge parameters which must persist when the projection algorithm is changed, but which should not be static (which must be different when different instances of the Gauge class are created). Examples include settings particular to a specific projection algorithm.


Field Summary
protected  String addMethod
          Method to add new datapoints.
static String NN_SUBSPACE
          Method for adding new datapoints.
protected  double perturbationAmount
          Amount by which to perturb overlapping points.
static String REFRESH
          Method for adding new datapoints.
protected  double tolerance
          Distance within which added points are considered old and are thus not added.
static String TRIANGULATE
          Method for adding new datapoints.
 
Constructor Summary
Settings()
           
 
Method Summary
 String getAddMethod()
           
static String[] getAddMethods()
           
 double getEpsilon()
           
 int getHiD1()
           
 int getHiD2()
           
 double getPerturbationAmount()
           
 double getTolerance()
           
 boolean isAutoFind()
           
 void setAddMethod(String i)
           
 void setAutoFind(boolean b)
           
 void setEpsilon(double d)
           
 void setHiD1(int i)
           
 void setHiD2(int i)
           
 void setPerturbationAmount(double d)
           
 void setTolerance(double d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REFRESH

public static final String REFRESH
Method for adding new datapoints.

See Also:
Constant Field Values

TRIANGULATE

public static final String TRIANGULATE
Method for adding new datapoints.

See Also:
Constant Field Values

NN_SUBSPACE

public static final String NN_SUBSPACE
Method for adding new datapoints.

See Also:
Constant Field Values

tolerance

protected double tolerance
Distance within which added points are considered old and are thus not added.


perturbationAmount

protected double perturbationAmount
Amount by which to perturb overlapping points.


addMethod

protected String addMethod
Method to add new datapoints.

Constructor Detail

Settings

public Settings()
Method Detail

isAutoFind

public boolean isAutoFind()
Returns:
whether coordinate projection is in auto-find mode

getEpsilon

public double getEpsilon()
Returns:
epsilon value for Sammon map

getHiD1

public int getHiD1()
Returns:
first coordinate projection axis for coordinate projection

getHiD2

public int getHiD2()
Returns:
second coordinate projection axis for coordinate projection

setAutoFind

public void setAutoFind(boolean b)
Parameters:
b - whether coordinate projection is in auto-find mode

setEpsilon

public void setEpsilon(double d)
Parameters:
d - epsilon value for Sammon map

setHiD1

public void setHiD1(int i)
Parameters:
i - first coordinate projection axis for coordinate projection

setHiD2

public void setHiD2(int i)
Parameters:
i - second coordinate projection axis for coordinate projection

getPerturbationAmount

public double getPerturbationAmount()
Returns:
how much to perturb overlapping points

getTolerance

public double getTolerance()
Returns:
distance within which added points are not considered new

setPerturbationAmount

public void setPerturbationAmount(double d)
Parameters:
d - how much to perturn overlapping points

setTolerance

public void setTolerance(double d)
Parameters:
d - distance within which new points are not considered new.

getAddMethod

public String getAddMethod()
Returns:
what method is being used to add new points

setAddMethod

public void setAddMethod(String i)
Parameters:
i - method to use to add new points

getAddMethods

public static String[] getAddMethods()
Returns:
addMethods string.