|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.hisee.core.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 java.lang.String |
addMethod
|
protected Dataset |
downstairs
|
protected Settings |
theSettings
|
protected Dataset |
upstairs
|
| 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(java.io.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 |
java.lang.String |
getAddMethod()
|
int |
getAddMethodIndex()
Indices sed in populating combo box in general dialog |
Dataset |
getDownstairs()
|
double |
getPerturbationAmount()
|
Settings |
getTheSettings()
|
double |
getTolerance()
|
Dataset |
getUpstairs()
|
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 |
isExtendible()
|
abstract boolean |
isIterable()
|
abstract double |
iterate()
Iterate, if it is iterable. |
abstract void |
project()
Perform operations necessay to project the data. |
void |
setAddMethod(java.lang.String string)
|
void |
setPerturbationAmount(double d)
|
void |
setTheSettings(Settings settings)
|
void |
setTolerance(double d)
|
| 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 java.lang.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(java.io.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 isExtendible()
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 java.lang.String getAddMethod()
public int getAddMethodIndex()
public void setAddMethod(java.lang.String string)
string -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||