|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simbrain.gauge.core.Projector
public abstract class Projector
Projector is a class describing a projection algorithm, which contains a high dimensional dataset (an "upstairs") and a low-dimensional projection of that high dimensional data (a "downstairs"). Classes which extend this class provide different ways of projecting the high dimensional space to the lowdimensional space. This class provides general methods for handling pairs of datasets and checking their integrity.
| Field Summary | |
|---|---|
protected String |
addMethod
Current selected add methods. |
protected Dataset |
downstairs
A set of low-d datapoints, each of which is an array of doubles The projection of the upstairs data. |
protected Settings |
theSettings
Reference to an object which contains information which must persist between re-inits of the projector. |
protected Dataset |
upstairs
A set of hi-d datapoints, each of which is an array of doubles The data to be projected. |
| Constructor Summary | |
|---|---|
Projector()
|
|
| Method Summary | |
|---|---|
void |
addDatapoint(double[] point)
Add a datapoint to the upstairs dataset, and a corresponding point to the downstairs dataset. |
void |
addUpstairs(File theFile)
Add new high-d datapoints and reinitialize the datasets. |
void |
checkDatasets()
Check validity of datasets. |
boolean |
compareDatasets()
Chcek the integrity of the two datasets by checking: (1) That the low-d set is at least 2 dimensions (2) That the low d space is lower dimensional than the hi d space (3) That both datasets have the same number of points. |
String |
getAddMethod()
|
int |
getAddMethodIndex()
Indices sed in populating combo box in general dialog. |
Dataset |
getDownstairs()
|
double |
getPerturbationAmount()
|
Settings |
getTheSettings()
|
double |
getTolerance()
|
Dataset |
getUpstairs()
|
abstract boolean |
hasDialog()
|
void |
init(Dataset up,
Dataset down)
Initialize the projector with high and low-d data. |
void |
init(int dims)
Initilize a projector when only the dimension of the dataset is known. |
abstract boolean |
isExtendable()
|
abstract boolean |
isIterable()
|
abstract double |
iterate()
Iterate, if it is iterable. |
abstract void |
project()
Perform operations necessay to project the data. |
void |
setAddMethod(String string)
|
void |
setDownstairs(Dataset downstairs)
|
void |
setPerturbationAmount(double d)
|
void |
setTheSettings(Settings settings)
|
void |
setTolerance(double d)
|
void |
setUpstairs(Dataset upstairs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Dataset upstairs
protected Dataset downstairs
protected Settings theSettings
protected String addMethod
| Constructor Detail |
|---|
public Projector()
| Method Detail |
|---|
public void init(Dataset up,
Dataset down)
up - Reference to high dimensional datasetdown - Reference to low dimensional dataset. Pass NULL if not availablepublic void checkDatasets()
public void init(int dims)
dims - Dimensionality of the new datasetpublic void addUpstairs(File theFile)
theFile - file containing the high-d data, forwarded to a dataset methodpublic boolean compareDatasets()
public abstract void project()
public abstract double iterate()
public abstract boolean isIterable()
public abstract boolean isExtendable()
public abstract boolean hasDialog()
public Dataset getUpstairs()
public Dataset getDownstairs()
public void addDatapoint(double[] point)
point - point to be addedpublic double getTolerance()
public void setTolerance(double d)
d - distance within which points are considered uniquepublic double getPerturbationAmount()
public void setPerturbationAmount(double d)
d - amount by which to perturb datapoints which overlappublic Settings getTheSettings()
public void setTheSettings(Settings settings)
settings - reference to object which contains preferences which persist when the projector is
re-initializedpublic String getAddMethod()
public int getAddMethodIndex()
public void setAddMethod(String string)
string - Method to be added.public void setDownstairs(Dataset downstairs)
downstairs - Sets projector downstairs.public void setUpstairs(Dataset upstairs)
upstairs - Sets projector upstairs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||