|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV> de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.EMClusterVisualization<NV>
NV
- Type of the NumberVector being visualized.public class EMClusterVisualization<NV extends NumberVector<NV,?>>
Visualizer for generating SVG-Elements containing ellipses for first, second and third standard deviation
Nested Class Summary | |
---|---|
static class |
EMClusterVisualization.Factory<NV extends NumberVector<NV,?>>
Visualizer for generating SVG-Elements containing ellipses for first, second and third standard deviation |
Field Summary | |
---|---|
(package private) Clustering<EMModel<NV>> |
clustering
The result we work on |
private int |
drawStyle
|
static String |
EMBORDER
Generic tags to indicate the type of element. |
private static double |
KAPPA
|
private static String |
NAME
A short name characterizing this Visualizer. |
private int |
opacStyle
|
(package private) static double[] |
sigma
|
private int |
softBorder
|
private int |
times
StyleParameter: |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
---|
proj, rel |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
context, layer, pendingRedraw, svgp, task |
Constructor Summary | |
---|---|
EMClusterVisualization(VisualizationTask task)
Constructor |
Method Summary | |
---|---|
private void |
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes |
private void |
drawArc(SVGPath path,
Vector cent,
Vector pre,
Vector nex,
Vector oPrev,
Vector oNext,
double scale)
Draw an arc to simulate the hyper ellipse. |
protected void |
drawHullArc(int cnum,
Vector cent,
Polygon chres)
|
protected void |
drawHullLines(int cnum,
Vector cent,
Polygon chres)
|
protected void |
drawSphere2D(int cnum,
Vector cent,
Vector[] pc)
|
protected Polygon |
makeHull(Vector[] pc)
|
protected Polygon |
makeHullComplex(Vector[] pc)
|
protected void |
redraw()
Perform a full redraw. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
---|
setupCanvas |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String NAME
public static final String EMBORDER
Clustering<EMModel<NV extends NumberVector<NV,?>>> clustering
private static final double KAPPA
private int times
private int opacStyle
private int softBorder
private int drawStyle
static final double[] sigma
Constructor Detail |
---|
public EMClusterVisualization(VisualizationTask task)
task
- VisualizationTaskMethod Detail |
---|
protected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
protected void drawSphere2D(int cnum, Vector cent, Vector[] pc)
protected void drawHullLines(int cnum, Vector cent, Polygon chres)
protected Polygon makeHull(Vector[] pc)
protected Polygon makeHullComplex(Vector[] pc)
protected void drawHullArc(int cnum, Vector cent, Polygon chres)
private void drawArc(SVGPath path, Vector cent, Vector pre, Vector nex, Vector oPrev, Vector oNext, double scale)
path
- Path to draw tocent
- Centerpre
- Previous pointnex
- Next pointscale
- Scaling factorprivate void addCSSClasses(SVGPlot svgp)
svgp
- SVG-Plot
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |