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

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
              extended by de.lmu.ifi.dbs.elki.visualization.projections.Simple1D
All Implemented Interfaces:
HierarchicalResult, Result, Projection, Projection1D

public class Simple1D
extends AbstractSimpleProjection
implements Projection1D

Dimension-selecting 1D projection.


Field Summary
(package private)  int dnum
          Our dimension, starting with 0
 
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
Simple1D(LinearScale[] scales, int dnum)
          Simple 1D projection using scaling only.
 
Method Summary
protected  Vector dearrange(Vector v)
          Undo the rearrangement of components
 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.
protected  Vector rearrange(Vector v)
          Method to rearrange components
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.projections.AbstractSimpleProjection
flipSecondEquals, projectRelativeRenderToScaled, projectRelativeScaledToRender, projectRenderToScaled, projectScaledToRender
 
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.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
 

Field Detail

dnum

final int dnum
Our dimension, starting with 0

Constructor Detail

Simple1D

public Simple1D(LinearScale[] scales,
                int dnum)
Simple 1D projection using scaling only.

Parameters:
scales - Scales to use
dnum - Dimension (starting at 1)
Method Detail

fastProjectDataToRenderSpace

public double fastProjectDataToRenderSpace(Vector data)
Description copied from interface: Projection1D
Project a data vector from data space to rendering space.

Specified by:
fastProjectDataToRenderSpace in interface Projection1D
Parameters:
data - vector in data space
Returns:
vector in rendering space

fastProjectDataToRenderSpace

public double fastProjectDataToRenderSpace(NumberVector<?,?> data)
Description copied from interface: Projection1D
Project a data vector from data space to rendering space.

Specified by:
fastProjectDataToRenderSpace in interface Projection1D
Parameters:
data - vector in data space
Returns:
vector in rendering space

fastProjectScaledToRender

public double fastProjectScaledToRender(Vector v)
Description copied from interface: Projection1D
Project a vector from scaled space to rendering space.

Specified by:
fastProjectScaledToRender in interface Projection1D
Parameters:
v - vector in scaled space
Returns:
vector in rendering space

fastProjectRelativeDataToRenderSpace

public double fastProjectRelativeDataToRenderSpace(Vector data)
Description copied from interface: Projection1D
Project a data vector from data space to rendering space.

Specified by:
fastProjectRelativeDataToRenderSpace in interface Projection1D
Parameters:
data - vector in data space
Returns:
vector in rendering space

fastProjectRelativeDataToRenderSpace

public double fastProjectRelativeDataToRenderSpace(NumberVector<?,?> data)
Description copied from interface: Projection1D
Project a data vector from data space to rendering space.

Specified by:
fastProjectRelativeDataToRenderSpace in interface Projection1D
Parameters:
data - vector in data space
Returns:
vector in rendering space

fastProjectRelativeScaledToRender

public double fastProjectRelativeScaledToRender(Vector v)
Description copied from interface: Projection1D
Project a vector from scaled space to rendering space.

Specified by:
fastProjectRelativeScaledToRender in interface Projection1D
Parameters:
v - vector in scaled space
Returns:
vector in rendering space

rearrange

protected Vector rearrange(Vector v)
Description copied from class: AbstractSimpleProjection
Method to rearrange components

Specified by:
rearrange in class AbstractSimpleProjection
Parameters:
v - Vector to rearrange
Returns:
rearranged copy

dearrange

protected Vector dearrange(Vector v)
Description copied from class: AbstractSimpleProjection
Undo the rearrangement of components

Specified by:
dearrange in class AbstractSimpleProjection
Parameters:
v - Vector to undo the rearrangement
Returns:
rearranged-undone copy

Release 0.4.0 (2011-09-20_1324)