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 ProjectorpProjector usedprotected LinearScale[]scalesScales 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 intgetInputDimensionality()Get the input dimensionality of the projection.java.lang.StringgetMenuName()Name to display in the menu.ProjectorgetProjector()Projector used for generating this projection.LinearScalegetScale(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:ProjectionGet the input dimensionality of the projection.- Specified by:
getInputDimensionalityin interfaceProjection- Returns:
- Input dimensionality
-
getScale
public LinearScale getScale(int d)
Get the scales used, for rendering scales mostly.- Specified by:
getScalein interfaceProjection- Parameters:
d- Dimension- Returns:
- Scale used
-
getMenuName
public java.lang.String getMenuName()
Description copied from interface:VisualizationItemName to display in the menu. May benullor empty string.- Specified by:
getMenuNamein interfaceVisualizationItem- Returns:
- Menu name.
-
getProjector
public Projector getProjector()
Description copied from interface:ProjectionProjector used for generating this projection.- Specified by:
getProjectorin interfaceProjection- Returns:
- Projector
-
-