Package elki.visualization.projections
Interface Projection2D
-
- All Superinterfaces:
Projection
,VisualizationItem
- All Known Implementing Classes:
AffineProjection
,Simple2D
public interface Projection2D extends Projection
Projections that have specialized methods to only compute the first two dimensions of the projection.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from interface elki.visualization.projections.Projection
INVSCALE, SCALE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CanvasSize
estimateViewport()
Estimate the viewport requirementsdouble[]
fastProjectDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.double[]
fastProjectDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.double[]
fastProjectDataToScaledSpace(double[] data)
Project a data vector from data space to scaled space.double[]
fastProjectDataToScaledSpace(NumberVector data)
Project a data vector from data space to scaled space.double[]
fastProjectRelativeDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.double[]
fastProjectRelativeDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.double[]
fastProjectRelativeScaledToRenderSpace(double[] v)
Project a vector from scaled space to rendering space.double[]
fastProjectRenderToDataSpace(double x, double y)
Project a data vector from rendering space to data space.double[]
fastProjectRenderToScaledSpace(double x, double y)
Project a vector from rendering space to scaled space.double[]
fastProjectScaledToRenderSpace(double[] v)
Project a vector from scaled space to rendering space.long[]
getVisibleDimensions2D()
Get a bit set of dimensions that are visible.-
Methods inherited from interface elki.visualization.projections.Projection
getInputDimensionality, getProjector, getScale
-
Methods inherited from interface elki.visualization.VisualizationItem
getMenuName
-
-
-
-
Method Detail
-
fastProjectDataToRenderSpace
double[] fastProjectDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.- Parameters:
data
- vector in data space- Returns:
- vector in rendering space
-
fastProjectDataToRenderSpace
double[] fastProjectDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.- Parameters:
data
- vector in data space- Returns:
- vector in rendering space
-
fastProjectDataToScaledSpace
double[] fastProjectDataToScaledSpace(double[] data)
Project a data vector from data space to scaled space.- Parameters:
data
- vector in data space- Returns:
- vector in scaled space
-
fastProjectDataToScaledSpace
double[] fastProjectDataToScaledSpace(NumberVector data)
Project a data vector from data space to scaled space.- Parameters:
data
- vector in data space- Returns:
- vector in scaled space
-
fastProjectScaledToRenderSpace
double[] fastProjectScaledToRenderSpace(double[] v)
Project a vector from scaled space to rendering space.- Parameters:
v
- vector in scaled space- Returns:
- vector in rendering space
-
fastProjectRenderToDataSpace
double[] fastProjectRenderToDataSpace(double x, double y)
Project a data vector from rendering space to data space.- Parameters:
x
- X coordinatey
- Y coordinate- Returns:
- vector in data space
-
fastProjectRenderToScaledSpace
double[] fastProjectRenderToScaledSpace(double x, double y)
Project a vector from rendering space to scaled space.- Parameters:
x
- X coordinatey
- Y coordinate- Returns:
- vector in scaled space
-
fastProjectRelativeDataToRenderSpace
double[] fastProjectRelativeDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.- Parameters:
data
- vector in data space- Returns:
- vector in rendering space
-
fastProjectRelativeDataToRenderSpace
double[] fastProjectRelativeDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.- Parameters:
data
- vector in data space- Returns:
- vector in rendering space
-
fastProjectRelativeScaledToRenderSpace
double[] fastProjectRelativeScaledToRenderSpace(double[] v)
Project a vector from scaled space to rendering space.- Parameters:
v
- vector in scaled space- Returns:
- vector in rendering space
-
estimateViewport
CanvasSize estimateViewport()
Estimate the viewport requirements- Returns:
- Canvas size obtained from projecting scale endpoints
-
getVisibleDimensions2D
long[] getVisibleDimensions2D()
Get a bit set of dimensions that are visible.- Returns:
- Bit set, first dimension is bit 0.
-
-