Package elki.visualization.svg
Class SVGHyperSphere
- java.lang.Object
-
- elki.visualization.svg.SVGHyperSphere
-
public final class SVGHyperSphere extends java.lang.Object
Utility class to draw hypercubes, wireframe and filled.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static double
EUCLIDEAN_KAPPA
Factor used for approximating circles with cubic beziers.
-
Constructor Summary
Constructors Modifier Constructor Description private
SVGHyperSphere()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.w3c.dom.Element
drawCross(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius)
Wireframe "cross" hyperspherestatic org.w3c.dom.Element
drawEuclidean(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius)
Wireframe "euclidean" hyperspherestatic org.w3c.dom.Element
drawLp(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius, double p)
Wireframe "Lp" hyperspherestatic org.w3c.dom.Element
drawManhattan(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius)
Wireframe "manhattan" hypersphere
-
-
-
Field Detail
-
EUCLIDEAN_KAPPA
public static final double EUCLIDEAN_KAPPA
Factor used for approximating circles with cubic beziers. kappa = 4 * (Math.sqrt(2)-1)/3- See Also:
- Constant Field Values
-
-
Method Detail
-
drawManhattan
public static org.w3c.dom.Element drawManhattan(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius)
Wireframe "manhattan" hypersphere- Parameters:
svgp
- SVG Plotproj
- Visualization projectionmid
- mean vectorradius
- radius- Returns:
- path element
-
drawEuclidean
public static org.w3c.dom.Element drawEuclidean(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius)
Wireframe "euclidean" hypersphere- Parameters:
svgp
- SVG Plotproj
- Visualization projectionmid
- mean vectorradius
- radius- Returns:
- path element
-
drawLp
public static org.w3c.dom.Element drawLp(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius, double p)
Wireframe "Lp" hypersphere- Parameters:
svgp
- SVG Plotproj
- Visualization projectionmid
- mean vectorradius
- radiusp
- L_p value- Returns:
- path element
-
drawCross
public static org.w3c.dom.Element drawCross(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius)
Wireframe "cross" hypersphere- Parameters:
svgp
- SVG Plotproj
- Visualization projectionmid
- mean vectorradius
- radius- Returns:
- path element
-
-