Package elki.visualization.projections
Class AbstractProjection
- java.lang.Object
-
- elki.visualization.projections.AbstractProjection
-
- All Implemented Interfaces:
Projection
,VisualizationItem
- Direct Known Subclasses:
AbstractFullProjection
public abstract class AbstractProjection extends java.lang.Object implements Projection
Abstract base projection class.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private Projector
p
Projector usedprotected LinearScale[]
scales
Scales in data set-
Fields inherited from interface elki.visualization.projections.Projection
INVSCALE, SCALE
-
-
Constructor Summary
Constructors Constructor Description AbstractProjection(Projector p, LinearScale[] scales)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInputDimensionality()
Get the input dimensionality of the projection.java.lang.String
getMenuName()
Name to display in the menu.Projector
getProjector()
Projector used for generating this projection.LinearScale
getScale(int d)
Get the scales used, for rendering scales mostly.
-
-
-
Field Detail
-
scales
protected final LinearScale[] scales
Scales in data set
-
p
private final Projector p
Projector used
-
-
Constructor Detail
-
AbstractProjection
public AbstractProjection(Projector p, LinearScale[] scales)
Constructor.- Parameters:
p
- Projectorscales
- 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 interfaceProjection
- Returns:
- Input dimensionality
-
getScale
public LinearScale getScale(int d)
Get the scales used, for rendering scales mostly.- Specified by:
getScale
in interfaceProjection
- Parameters:
d
- Dimension- Returns:
- Scale used
-
getMenuName
public java.lang.String getMenuName()
Description copied from interface:VisualizationItem
Name to display in the menu. May benull
or empty string.- Specified by:
getMenuName
in interfaceVisualizationItem
- Returns:
- Menu name.
-
getProjector
public Projector getProjector()
Description copied from interface:Projection
Projector used for generating this projection.- Specified by:
getProjector
in interfaceProjection
- Returns:
- Projector
-
-