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

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

public abstract class AbstractProjection
extends AbstractHierarchicalResult
implements Projection

Abstract base projection class.


Field Summary
protected  LinearScale[] scales
          Scales in data set
 
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.projections.Projection
SCALE
 
Constructor Summary
AbstractProjection(LinearScale[] scales)
          Constructor.
 
Method Summary
 int getInputDimensionality()
          Get the input dimensionality of the projection.
 String getLongName()
          A "pretty" name for the result, for use in titles, captions and menus.
 LinearScale getScale(int d)
          Get the scales used, for rendering scales mostly.
 String getShortName()
          A short name for the result, useful for file names.
 Vector projectDataToRenderSpace(NumberVector<?,?> data)
          Project a data vector from data space to rendering space.
 Vector projectDataToRenderSpace(Vector data)
          Project a data vector from data space to rendering space.
 Vector projectDataToScaledSpace(NumberVector<?,?> data)
          Project a data vector from data space to scaled space.
 Vector projectDataToScaledSpace(Vector data)
          Project a data vector from data space to scaled space.
 Vector projectRelativeDataToRenderSpace(NumberVector<?,?> data)
          Project a relative data vector from data space to rendering space.
 Vector projectRelativeDataToRenderSpace(Vector data)
          Project a relative data vector from data space to rendering space.
 Vector projectRelativeDataToScaledSpace(NumberVector<?,?> data)
          Project a relative data vector from data space to scaled space.
 Vector projectRelativeDataToScaledSpace(Vector data)
          Project a relative data vector from data space to scaled space.
<NV extends NumberVector<NV,?>>
NV
projectRelativeRenderToDataSpace(Vector v, NV prototype)
          Project a relative vector from rendering space to data space.
<NV extends NumberVector<NV,?>>
NV
projectRelativeScaledToDataSpace(Vector v, NV prototype)
          Project a relative vector from scaled space to data space.
<NV extends NumberVector<NV,?>>
NV
projectRenderToDataSpace(Vector v, NV prototype)
          Project a vector from rendering space to data space.
<NV extends NumberVector<NV,?>>
NV
projectScaledToDataSpace(Vector v, NV factory)
          Project a vector from scaled space to data space.
 
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.visualization.projections.Projection
projectRelativeRenderToScaled, projectRelativeScaledToRender, projectRenderToScaled, projectScaledToRender
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult
getHierarchy, setHierarchy
 

Field Detail

scales

protected final LinearScale[] scales
Scales in data set

Constructor Detail

AbstractProjection

public AbstractProjection(LinearScale[] scales)
Constructor.

Parameters:
scales - Scales to use
Method Detail

getInputDimensionality

public int getInputDimensionality()
Description copied from interface: Projection
Get the input dimensionality of the projection.

Specified by:
getInputDimensionality in interface Projection
Returns:
Input dimensionality

getScale

public LinearScale getScale(int d)
Get the scales used, for rendering scales mostly.

Specified by:
getScale in interface Projection
Parameters:
d - Dimension
Returns:
Scale used

projectDataToScaledSpace

public Vector projectDataToScaledSpace(NumberVector<?,?> data)
Project a data vector from data space to scaled space.

Specified by:
projectDataToScaledSpace in interface Projection
Parameters:
data - vector in data space
Returns:
vector in scaled space

projectDataToScaledSpace

public Vector projectDataToScaledSpace(Vector data)
Project a data vector from data space to scaled space.

Specified by:
projectDataToScaledSpace in interface Projection
Parameters:
data - vector in data space
Returns:
vector in scaled space

projectRelativeDataToScaledSpace

public Vector projectRelativeDataToScaledSpace(NumberVector<?,?> data)
Project a relative data vector from data space to scaled space.

Specified by:
projectRelativeDataToScaledSpace in interface Projection
Parameters:
data - relative vector in data space
Returns:
relative vector in scaled space

projectRelativeDataToScaledSpace

public Vector projectRelativeDataToScaledSpace(Vector data)
Project a relative data vector from data space to scaled space.

Specified by:
projectRelativeDataToScaledSpace in interface Projection
Parameters:
data - relative vector in data space
Returns:
relative vector in scaled space

projectDataToRenderSpace

public Vector projectDataToRenderSpace(NumberVector<?,?> data)
Project a data vector from data space to rendering space.

Specified by:
projectDataToRenderSpace in interface Projection
Parameters:
data - vector in data space
Returns:
vector in rendering space

projectDataToRenderSpace

public Vector projectDataToRenderSpace(Vector data)
Project a data vector from data space to rendering space.

Specified by:
projectDataToRenderSpace in interface Projection
Parameters:
data - vector in data space
Returns:
vector in rendering space

projectRelativeDataToRenderSpace

public Vector projectRelativeDataToRenderSpace(NumberVector<?,?> data)
Project a relative data vector from data space to rendering space.

Specified by:
projectRelativeDataToRenderSpace in interface Projection
Parameters:
data - relative vector in data space
Returns:
relative vector in rendering space

projectRelativeDataToRenderSpace

public Vector projectRelativeDataToRenderSpace(Vector data)
Project a relative data vector from data space to rendering space.

Specified by:
projectRelativeDataToRenderSpace in interface Projection
Parameters:
data - relative vector in data space
Returns:
relative vector in rendering space

projectScaledToDataSpace

public <NV extends NumberVector<NV,?>> NV projectScaledToDataSpace(Vector v,
                                                                   NV factory)
Project a vector from scaled space to data space.

Specified by:
projectScaledToDataSpace in interface Projection
Type Parameters:
NV - Vector type
Parameters:
v - vector in scaled space
factory - Object factory
Returns:
vector in data space

projectRenderToDataSpace

public <NV extends NumberVector<NV,?>> NV projectRenderToDataSpace(Vector v,
                                                                   NV prototype)
Project a vector from rendering space to data space.

Specified by:
projectRenderToDataSpace in interface Projection
Type Parameters:
NV - Vector type
Parameters:
v - vector in rendering space
prototype - Object factory
Returns:
vector in data space

projectRelativeScaledToDataSpace

public <NV extends NumberVector<NV,?>> NV projectRelativeScaledToDataSpace(Vector v,
                                                                           NV prototype)
Project a relative vector from scaled space to data space.

Specified by:
projectRelativeScaledToDataSpace in interface Projection
Type Parameters:
NV - Vector type
Parameters:
v - relative vector in scaled space
prototype - Object factory
Returns:
relative vector in data space

projectRelativeRenderToDataSpace

public <NV extends NumberVector<NV,?>> NV projectRelativeRenderToDataSpace(Vector v,
                                                                           NV prototype)
Project a relative vector from rendering space to data space.

Specified by:
projectRelativeRenderToDataSpace in interface Projection
Type Parameters:
NV - Vector type
Parameters:
v - relative vector in rendering space
prototype - Object factory
Returns:
relative vector in data space

getLongName

public String getLongName()
Description copied from interface: Result
A "pretty" name for the result, for use in titles, captions and menus.

Specified by:
getLongName in interface Result
Returns:
result name

getShortName

public String getShortName()
Description copied from interface: Result
A short name for the result, useful for file names.

Specified by:
getShortName in interface Result
Returns:
result name

Release 0.4.0 (2011-09-20_1324)