Package elki.visualization.svg
Class VoronoiDraw
- java.lang.Object
-
- elki.visualization.svg.VoronoiDraw
-
public final class VoronoiDraw extends java.lang.Object
Draw the Voronoi cells- Since:
- 0.5.0
- Author:
- Robert Rödler, Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description private
VoronoiDraw()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SVGPath
drawDelaunay(Projection2D proj, java.util.List<SweepHullDelaunay2D.Triangle> delaunay, java.util.List<double[]> means)
Draw the Delaunay triangulation.static SVGPath
drawFakeVoronoi(Projection2D proj, java.util.List<double[]> means)
Fake Voronoi diagram.static SVGPath
drawVoronoi(Projection2D proj, java.util.List<SweepHullDelaunay2D.Triangle> delaunay, java.util.List<double[]> means)
Draw a Voronoi diagram
-
-
-
Method Detail
-
drawDelaunay
public static SVGPath drawDelaunay(Projection2D proj, java.util.List<SweepHullDelaunay2D.Triangle> delaunay, java.util.List<double[]> means)
Draw the Delaunay triangulation.- Parameters:
proj
- Projectiondelaunay
- Triangulationmeans
- Means- Returns:
- Path
-
drawVoronoi
public static SVGPath drawVoronoi(Projection2D proj, java.util.List<SweepHullDelaunay2D.Triangle> delaunay, java.util.List<double[]> means)
Draw a Voronoi diagram- Parameters:
proj
- Projectiondelaunay
- Delaunay triangulationmeans
- Cluster means- Returns:
- SVG path
-
drawFakeVoronoi
public static SVGPath drawFakeVoronoi(Projection2D proj, java.util.List<double[]> means)
Fake Voronoi diagram. For two means only- Parameters:
proj
- Projectionmeans
- Mean vectors- Returns:
- SVG path
-
-