|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.application.visualization.KNNExplorer.ExplorerWindow
class KNNExplorer.ExplorerWindow
Main window of KNN Explorer.
Nested Class Summary | |
---|---|
private class |
KNNExplorer.ExplorerWindow.SeriesLabelRenderer
Renderer for the labels, with coloring as in the plot. |
Field Summary | |
---|---|
protected Database<O> |
db
|
protected int |
dim
|
protected HashMap<Integer,Double> |
distancecache
|
private DistanceFunction<O,D> |
distanceFunction
Holds the instance of the distance function specified by KNNExplorer.DISTANCE_FUNCTION_PARAM . |
protected JFrame |
frame
|
protected int |
k
|
private static int |
MAXRESOLUTION
Maximum resolution for plotted lines to improve performance for long time series. |
(package private) SVGPlot |
plot
|
protected JButton |
quitButton
|
protected double |
ratio
|
protected LinearScale |
s
|
protected JButton |
saveButton
|
private static String |
SERIESID
SVG graph object ID (for replacing) |
private JList |
seriesList
|
protected JSpinner |
spinner
|
protected JSVGSynchronizedCanvas |
svgCanvas
|
(package private) Element |
viewport
|
private static String |
WINDOW_TITLE_BASE
Default Window Title |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
KNNExplorer.ExplorerWindow()
Constructor. |
Method Summary | |
---|---|
(package private) Color |
getColor(double dist)
Get the appropriate color for the given distance. |
private Element |
plotSeries(int idx,
int resolution)
Plot a single time series. |
void |
run(Database<O> db,
DistanceFunction<O,D> distanceFunction)
Process the given Database and distance function. |
protected void |
updateSelection()
Process the users new selection. |
void |
updateSize()
Update the SVG plot size. |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String WINDOW_TITLE_BASE
private static final int MAXRESOLUTION
private static final String SERIESID
protected JFrame frame
protected JSpinner spinner
private JList seriesList
protected JButton quitButton
protected JButton saveButton
protected JSVGSynchronizedCanvas svgCanvas
SVGPlot plot
Element viewport
protected int dim
protected int k
protected LinearScale s
protected Database<O extends NumberVector<?,?>> db
protected HashMap<Integer,Double> distancecache
protected double ratio
private DistanceFunction<O extends NumberVector<?,?>,D extends NumberDistance<D,N>> distanceFunction
KNNExplorer.DISTANCE_FUNCTION_PARAM
.
Constructor Detail |
---|
public KNNExplorer.ExplorerWindow()
Method Detail |
---|
public void updateSize()
public void run(Database<O> db, DistanceFunction<O,D> distanceFunction)
db
- DatabasedistanceFunction
- Distance functionprotected void updateSelection()
Color getColor(double dist)
dist
- Distance
private Element plotSeries(int idx, int resolution)
idx
- Object indexresolution
- Maximum number of steps to plot
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |