NV
- Type of the NumberVector being visualized.public class EMClusterVisualization<NV extends NumberVector<NV,?>> extends P2DVisualization<NV>
Modifier and Type | Class and Description |
---|---|
static class |
EMClusterVisualization.Factory<NV extends NumberVector<NV,?>>
Visualizer for generating SVG-Elements containing ellipses for first,
second and third standard deviation
|
Modifier and Type | Field and Description |
---|---|
(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:
|
proj, rel
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
EMClusterVisualization(VisualizationTask task)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
setupCanvas
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
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
public EMClusterVisualization(VisualizationTask task)
task
- VisualizationTaskprotected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
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