Package elki.visualization.projections
Class AbstractFullProjection
- java.lang.Object
-
- elki.visualization.projections.AbstractProjection
-
- elki.visualization.projections.AbstractFullProjection
-
- All Implemented Interfaces:
FullProjection
,Projection
,VisualizationItem
- Direct Known Subclasses:
AbstractSimpleProjection
,AffineProjection
public abstract class AbstractFullProjection extends AbstractProjection implements FullProjection
Abstract base class for full projections. Note: the full projection API may be removed at some point, unless we find a clear use case that cannot be done by the low level fast projections.- 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 AbstractFullProjection(Projector p, LinearScale[] scales)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
projectDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.double[]
projectDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.double[]
projectDataToScaledSpace(double[] data)
Project a data vector from data space to scaled space.double[]
projectDataToScaledSpace(NumberVector data)
Project a data vector from data space to scaled space.double[]
projectRelativeDataToRenderSpace(double[] data)
Project a relative data vector from data space to rendering space.double[]
projectRelativeDataToRenderSpace(NumberVector data)
Project a relative data vector from data space to rendering space.double[]
projectRelativeDataToScaledSpace(double[] data)
Project a relative data vector from data space to scaled space.double[]
projectRelativeDataToScaledSpace(NumberVector data)
Project a relative data vector from data space to scaled space.<NV extends NumberVector>
NVprojectRelativeRenderToDataSpace(double[] v, NumberVector.Factory<NV> prototype)
Project a relative vector from rendering space to data space.<NV extends NumberVector>
NVprojectRelativeScaledToDataSpace(double[] v, NumberVector.Factory<NV> prototype)
Project a relative vector from scaled space to data space.<NV extends NumberVector>
NVprojectRenderToDataSpace(double[] v, NumberVector.Factory<NV> prototype)
Project a vector from rendering space to data space.<NV extends NumberVector>
NVprojectScaledToDataSpace(double[] v, NumberVector.Factory<NV> factory)
Project a vector from scaled space to data space.-
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.FullProjection
projectRelativeRenderToScaled, projectRelativeScaledToRender, projectRenderToScaled, projectScaledToRender
-
Methods inherited from interface elki.visualization.projections.Projection
getInputDimensionality, getProjector, getScale
-
Methods inherited from interface elki.visualization.VisualizationItem
getMenuName
-
-
-
-
Constructor Detail
-
AbstractFullProjection
public AbstractFullProjection(Projector p, LinearScale[] scales)
Constructor.- Parameters:
p
- Projectorscales
- Scales
-
-
Method Detail
-
projectDataToScaledSpace
public double[] projectDataToScaledSpace(NumberVector data)
Project a data vector from data space to scaled space.- Specified by:
projectDataToScaledSpace
in interfaceFullProjection
- Parameters:
data
- vector in data space- Returns:
- vector in scaled space
-
projectDataToScaledSpace
public double[] projectDataToScaledSpace(double[] data)
Project a data vector from data space to scaled space.- Specified by:
projectDataToScaledSpace
in interfaceFullProjection
- Parameters:
data
- vector in data space- Returns:
- vector in scaled space
-
projectRelativeDataToScaledSpace
public double[] projectRelativeDataToScaledSpace(NumberVector data)
Project a relative data vector from data space to scaled space.- Specified by:
projectRelativeDataToScaledSpace
in interfaceFullProjection
- Parameters:
data
- relative vector in data space- Returns:
- relative vector in scaled space
-
projectRelativeDataToScaledSpace
public double[] projectRelativeDataToScaledSpace(double[] data)
Project a relative data vector from data space to scaled space.- Specified by:
projectRelativeDataToScaledSpace
in interfaceFullProjection
- Parameters:
data
- relative vector in data space- Returns:
- relative vector in scaled space
-
projectDataToRenderSpace
public double[] projectDataToRenderSpace(NumberVector data)
Project a data vector from data space to rendering space.- Specified by:
projectDataToRenderSpace
in interfaceFullProjection
- Parameters:
data
- vector in data space- Returns:
- vector in rendering space
-
projectDataToRenderSpace
public double[] projectDataToRenderSpace(double[] data)
Project a data vector from data space to rendering space.- Specified by:
projectDataToRenderSpace
in interfaceFullProjection
- Parameters:
data
- vector in data space- Returns:
- vector in rendering space
-
projectRelativeDataToRenderSpace
public double[] projectRelativeDataToRenderSpace(NumberVector data)
Project a relative data vector from data space to rendering space.- Specified by:
projectRelativeDataToRenderSpace
in interfaceFullProjection
- Parameters:
data
- relative vector in data space- Returns:
- relative vector in rendering space
-
projectRelativeDataToRenderSpace
public double[] projectRelativeDataToRenderSpace(double[] data)
Project a relative data vector from data space to rendering space.- Specified by:
projectRelativeDataToRenderSpace
in interfaceFullProjection
- Parameters:
data
- relative vector in data space- Returns:
- relative vector in rendering space
-
projectScaledToDataSpace
public <NV extends NumberVector> NV projectScaledToDataSpace(double[] v, NumberVector.Factory<NV> factory)
Project a vector from scaled space to data space.- Specified by:
projectScaledToDataSpace
in interfaceFullProjection
- Type Parameters:
NV
- Vector type- Parameters:
v
- vector in scaled spacefactory
- Object factory- Returns:
- vector in data space
-
projectRenderToDataSpace
public <NV extends NumberVector> NV projectRenderToDataSpace(double[] v, NumberVector.Factory<NV> prototype)
Project a vector from rendering space to data space.- Specified by:
projectRenderToDataSpace
in interfaceFullProjection
- Type Parameters:
NV
- Vector type- Parameters:
v
- vector in rendering spaceprototype
- Object factory- Returns:
- vector in data space
-
projectRelativeScaledToDataSpace
public <NV extends NumberVector> NV projectRelativeScaledToDataSpace(double[] v, NumberVector.Factory<NV> prototype)
Project a relative vector from scaled space to data space.- Specified by:
projectRelativeScaledToDataSpace
in interfaceFullProjection
- Type Parameters:
NV
- Vector type- Parameters:
v
- relative vector in scaled spaceprototype
- Object factory- Returns:
- relative vector in data space
-
projectRelativeRenderToDataSpace
public <NV extends NumberVector> NV projectRelativeRenderToDataSpace(double[] v, NumberVector.Factory<NV> prototype)
Project a relative vector from rendering space to data space.- Specified by:
projectRelativeRenderToDataSpace
in interfaceFullProjection
- Type Parameters:
NV
- Vector type- Parameters:
v
- relative vector in rendering spaceprototype
- Object factory- Returns:
- relative vector in data space
-
-