de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class EMClusterVisualization<NV extends NumberVector<NV,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV>
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.EMClusterVisualization<NV>
Type Parameters:
NV - Type of the NumberVector being visualized.
All Implemented Interfaces:
ResultListener, ContextChangeListener, Visualization, EventListener

public class EMClusterVisualization<NV extends NumberVector<NV,?>>
extends P2DVisualization<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

NAME

private static final String NAME
A short name characterizing this Visualizer.

See Also:
Constant Field Values

EMBORDER

public static final String EMBORDER
Generic tags to indicate the type of element. Used in IDs, CSS-Classes etc.

See Also:
Constant Field Values

clustering

Clustering<EMModel<NV extends NumberVector<NV,?>>> clustering
The result we work on


KAPPA

private static final double KAPPA
See Also:
Constant Field Values

times

private int times
StyleParameter:


opacStyle

private int opacStyle

softBorder

private int softBorder

drawStyle

private int drawStyle

sigma

static final double[] sigma
Constructor Detail

EMClusterVisualization

public EMClusterVisualization(VisualizationTask task)
Constructor

Parameters:
task - VisualizationTask
Method Detail

redraw

protected void redraw()
Description copied from class: AbstractVisualization
Perform a full redraw.

Specified by:
redraw in class AbstractVisualization

drawSphere2D

protected void drawSphere2D(int cnum,
                            Vector cent,
                            Vector[] pc)

drawHullLines

protected void drawHullLines(int cnum,
                             Vector cent,
                             Polygon chres)

makeHull

protected Polygon makeHull(Vector[] pc)

makeHullComplex

protected Polygon makeHullComplex(Vector[] pc)

drawHullArc

protected void drawHullArc(int cnum,
                           Vector cent,
                           Polygon chres)

drawArc

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.

Parameters:
path - Path to draw to
cent - Center
pre - Previous point
nex - Next point
scale - Scaling factor

addCSSClasses

private void addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes

Parameters:
svgp - SVG-Plot

Release 0.4.0 (2011-09-20_1324)