de.lmu.ifi.dbs.elki.visualization.svg
Class SVGHyperSphere

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.svg.SVGHyperSphere

public class SVGHyperSphere
extends Object

Utility class to draw hypercubes, wireframe and filled.


Field Summary
static double EUCLIDEAN_KAPPA
          Factor used for approximating circles with cubic beziers.
 
Constructor Summary
SVGHyperSphere()
           
 
Method Summary
static
<V extends NumberVector<V,?>,D extends NumberDistance<?,?>>
Element
drawCross(SVGPlot svgp, Projection2D proj, V mid, D rad)
          Wireframe "cross" hypersphere
static
<V extends NumberVector<V,?>,D extends NumberDistance<?,?>>
Element
drawEuclidean(SVGPlot svgp, Projection2D proj, V mid, D rad)
          Wireframe "euclidean" hypersphere
static
<V extends NumberVector<V,?>,D extends NumberDistance<?,?>>
Element
drawLp(SVGPlot svgp, Projection2D proj, V mid, D rad, double p)
          Wireframe "Lp" hypersphere
static
<V extends NumberVector<V,?>,D extends NumberDistance<?,?>>
Element
drawManhattan(SVGPlot svgp, Projection2D proj, V mid, D rad)
          Wireframe "manhattan" hypersphere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

SVGHyperSphere

public SVGHyperSphere()
Method Detail

drawManhattan

public static <V extends NumberVector<V,?>,D extends NumberDistance<?,?>> Element drawManhattan(SVGPlot svgp,
                                                                                                Projection2D proj,
                                                                                                V mid,
                                                                                                D rad)
Wireframe "manhattan" hypersphere

Type Parameters:
V - vector type
D - radius
Parameters:
svgp - SVG Plot
proj - Visualization projection
mid - mean vector
rad - radius
Returns:
path element

drawEuclidean

public static <V extends NumberVector<V,?>,D extends NumberDistance<?,?>> Element drawEuclidean(SVGPlot svgp,
                                                                                                Projection2D proj,
                                                                                                V mid,
                                                                                                D rad)
Wireframe "euclidean" hypersphere

Type Parameters:
V - vector type
D - radius
Parameters:
svgp - SVG Plot
proj - Visualization projection
mid - mean vector
rad - radius
Returns:
path element

drawLp

public static <V extends NumberVector<V,?>,D extends NumberDistance<?,?>> Element drawLp(SVGPlot svgp,
                                                                                         Projection2D proj,
                                                                                         V mid,
                                                                                         D rad,
                                                                                         double p)
Wireframe "Lp" hypersphere

Type Parameters:
V - vector type
D - radius
Parameters:
svgp - SVG Plot
proj - Visualization projection
mid - mean vector
rad - radius
p - L_p value
Returns:
path element

drawCross

public static <V extends NumberVector<V,?>,D extends NumberDistance<?,?>> Element drawCross(SVGPlot svgp,
                                                                                            Projection2D proj,
                                                                                            V mid,
                                                                                            D rad)
Wireframe "cross" hypersphere

Type Parameters:
V - vector type
D - radius
Parameters:
svgp - SVG Plot
proj - Visualization projection
mid - mean vector
rad - radius
Returns:
path element

Release 0.4.0 (2011-09-20_1324)