de.lmu.ifi.dbs.elki.visualization.projections
Interface Projection2D

All Superinterfaces:
HierarchicalResult, Projection, Result
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.


Field Summary
 
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.projections.Projection
SCALE
 
Method Summary
 String estimateTransformString(double margin, double width, double height)
          Get a SVG transformation string to bring the contents into the unit cube.
 Pair<DoubleMinMax,DoubleMinMax> estimateViewport()
          Estimate the viewport requirements
 double[] fastProjectDataToRenderSpace(NumberVector<?,?> data)
          Project a data vector from data space to rendering space.
 double[] fastProjectDataToRenderSpace(Vector 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[] fastProjectRelativeDataToRenderSpace(Vector data)
          Project a data vector from data space to rendering space.
 double[] fastProjectRelativeScaledToRender(Vector v)
          Project a vector from scaled space to rendering space.
 double[] fastProjectScaledToRender(Vector v)
          Project a vector from scaled space to rendering space.
 BitSet getVisibleDimensions2D()
          Get a bit set of dimensions that are visible.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.visualization.projections.Projection
getInputDimensionality, getScale, projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeRenderToScaled, projectRelativeScaledToDataSpace, projectRelativeScaledToRender, projectRenderToDataSpace, projectRenderToScaled, projectScaledToDataSpace, projectScaledToRender
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult
getHierarchy, setHierarchy
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Method Detail

fastProjectDataToRenderSpace

double[] fastProjectDataToRenderSpace(Vector 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

fastProjectScaledToRender

double[] fastProjectScaledToRender(Vector v)
Project a vector from scaled space to rendering space.

Parameters:
v - vector in scaled space
Returns:
vector in rendering space

fastProjectRelativeDataToRenderSpace

double[] fastProjectRelativeDataToRenderSpace(Vector 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

fastProjectRelativeScaledToRender

double[] fastProjectRelativeScaledToRender(Vector v)
Project a vector from scaled space to rendering space.

Parameters:
v - vector in scaled space
Returns:
vector in rendering space

estimateViewport

Pair<DoubleMinMax,DoubleMinMax> estimateViewport()
Estimate the viewport requirements

Returns:
MinMax for x and y obtained from projecting scale endpoints

estimateTransformString

String estimateTransformString(double margin,
                               double width,
                               double height)
Get a SVG transformation string to bring the contents into the unit cube.

Parameters:
margin - extra margin to add.
width - Width
height - Height
Returns:
transformation string.

getVisibleDimensions2D

BitSet getVisibleDimensions2D()
Get a bit set of dimensions that are visible.

Returns:
Bit set, first dimension is bit 0.

Release 0.4.0 (2011-09-20_1324)