de.lmu.ifi.dbs.elki.visualization.projections
Class AbstractSimpleProjection

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
      extended by de.lmu.ifi.dbs.elki.visualization.projections.AbstractProjection
          extended by de.lmu.ifi.dbs.elki.visualization.projections.AbstractSimpleProjection
All Implemented Interfaces:
HierarchicalResult, Result, Projection
Direct Known Subclasses:
Simple1D, Simple2D

public abstract class AbstractSimpleProjection
extends AbstractProjection

Abstract base class for "simple" projections. Simple projections use the given scaling and dimension selection only.


Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.projections.AbstractProjection
scales
 
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.projections.Projection
SCALE
 
Constructor Summary
AbstractSimpleProjection(LinearScale[] scales)
          Constructor.
 
Method Summary
protected abstract  Vector dearrange(Vector v)
          Undo the rearrangement of components
protected  Vector flipSecondEquals(Vector v)
          Flip the y axis.
 Vector projectRelativeRenderToScaled(Vector v)
          Project a relative vector from rendering space to scaled space.
 Vector projectRelativeScaledToRender(Vector v)
          Project a relative vector from scaled space to rendering space.
 Vector projectRenderToScaled(Vector v)
          Project a vector from rendering space to scaled space.
 Vector projectScaledToRender(Vector v)
          Project a vector from scaled space to rendering space.
protected abstract  Vector rearrange(Vector v)
          Method to rearrange components
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.projections.AbstractProjection
getInputDimensionality, getLongName, getScale, getShortName, projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeScaledToDataSpace, projectRenderToDataSpace, projectScaledToDataSpace
 
Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
addChildResult, getHierarchy, setHierarchy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult
getHierarchy, setHierarchy
 

Constructor Detail

AbstractSimpleProjection

public AbstractSimpleProjection(LinearScale[] scales)
Constructor.

Parameters:
scales - Scales to use
Method Detail

projectScaledToRender

public Vector projectScaledToRender(Vector v)
Description copied from interface: Projection
Project a vector from scaled space to rendering space.

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

projectRenderToScaled

public Vector projectRenderToScaled(Vector v)
Description copied from interface: Projection
Project a vector from rendering space to scaled space.

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

projectRelativeScaledToRender

public Vector projectRelativeScaledToRender(Vector v)
Description copied from interface: Projection
Project a relative vector from scaled space to rendering space.

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

projectRelativeRenderToScaled

public Vector projectRelativeRenderToScaled(Vector v)
Description copied from interface: Projection
Project a relative vector from rendering space to scaled space.

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

flipSecondEquals

protected Vector flipSecondEquals(Vector v)
Flip the y axis.

Parameters:
v - Vector
Returns:
modified v

rearrange

protected abstract Vector rearrange(Vector v)
Method to rearrange components

Parameters:
v - Vector to rearrange
Returns:
rearranged copy

dearrange

protected abstract Vector dearrange(Vector v)
Undo the rearrangement of components

Parameters:
v - Vector to undo the rearrangement
Returns:
rearranged-undone copy

Release 0.4.0 (2011-09-20_1324)