Package elki.visualization.projections
Class AbstractSimpleProjection
- java.lang.Object
-
- elki.visualization.projections.AbstractProjection
-
- elki.visualization.projections.AbstractFullProjection
-
- elki.visualization.projections.AbstractSimpleProjection
-
- All Implemented Interfaces:
FullProjection
,Projection
,VisualizationItem
public abstract class AbstractSimpleProjection extends AbstractFullProjection
Abstract base class for "simple" projections. Simple projections use the given scaling and dimension selection only.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.visualization.projections.AbstractProjection
scales
-
Fields inherited from interface elki.visualization.projections.Projection
INVSCALE, SCALE
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleProjection(Projector p, LinearScale[] scales)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract double[]
dearrange(double[] v)
Undo the rearrangement of components.protected double[]
flipSecondEquals(double[] v)
Flip the y axis.double[]
projectRelativeRenderToScaled(double[] v)
Project a relative vector from rendering space to scaled space.double[]
projectRelativeScaledToRender(double[] v)
Project a relative vector from scaled space to rendering space.double[]
projectRenderToScaled(double[] v)
Project a vector from rendering space to scaled space.double[]
projectScaledToRender(double[] v)
Project a vector from scaled space to rendering space.protected abstract double[]
rearrange(double[] v)
Method to rearrange components.-
Methods inherited from class elki.visualization.projections.AbstractFullProjection
projectDataToRenderSpace, projectDataToRenderSpace, projectDataToScaledSpace, projectDataToScaledSpace, projectRelativeDataToRenderSpace, projectRelativeDataToRenderSpace, projectRelativeDataToScaledSpace, projectRelativeDataToScaledSpace, projectRelativeRenderToDataSpace, projectRelativeScaledToDataSpace, projectRenderToDataSpace, projectScaledToDataSpace
-
Methods inherited from class elki.visualization.projections.AbstractProjection
getInputDimensionality, getMenuName, getProjector, getScale
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.visualization.projections.Projection
getInputDimensionality, getProjector, getScale
-
Methods inherited from interface elki.visualization.VisualizationItem
getMenuName
-
-
-
-
Constructor Detail
-
AbstractSimpleProjection
public AbstractSimpleProjection(Projector p, LinearScale[] scales)
Constructor.- Parameters:
p
- Projectorscales
- Scales to use
-
-
Method Detail
-
projectScaledToRender
public double[] projectScaledToRender(double[] v)
Description copied from interface:FullProjection
Project a vector from scaled space to rendering space.- Parameters:
v
- vector in scaled space- Returns:
- vector in rendering space
-
projectRenderToScaled
public double[] projectRenderToScaled(double[] v)
Description copied from interface:FullProjection
Project a vector from rendering space to scaled space.- Parameters:
v
- vector in rendering space- Returns:
- vector in scaled space
-
projectRelativeScaledToRender
public double[] projectRelativeScaledToRender(double[] v)
Description copied from interface:FullProjection
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 double[] projectRelativeRenderToScaled(double[] v)
Description copied from interface:FullProjection
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 double[] flipSecondEquals(double[] v)
Flip the y axis.- Parameters:
v
- double[]- Returns:
- modified v
-
rearrange
protected abstract double[] rearrange(double[] v)
Method to rearrange components.- Parameters:
v
- double[] to rearrange- Returns:
- rearranged copy
-
dearrange
protected abstract double[] dearrange(double[] v)
Undo the rearrangement of components.- Parameters:
v
- double[] to undo the rearrangement- Returns:
- rearranged-undone copy
-
-