Package elki.visualization.projections
Class SilhouetteProjection
- java.lang.Object
-
- elki.visualization.projections.SilhouetteProjection
-
- All Implemented Interfaces:
Projection
,VisualizationItem
public class SilhouetteProjection extends java.lang.Object implements Projection
Silhouette projection.- Since:
- 0.8.0
- Author:
- Robert Gehde
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SilhouettePlotProjector
projector
The projector we were generated from.-
Fields inherited from interface elki.visualization.projections.Projection
INVSCALE, SCALE
-
-
Constructor Summary
Constructors Constructor Description SilhouetteProjection(SilhouettePlotProjector silhouettePlotProjector)
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.Clustering<?>
getResult()
Get the underlying Clustering from which the silhouette values are calculated.LinearScale
getScale(int d)
Get the scale class for a particular dimension.SilhouettePlot
getSilhouettePlot(VisualizerContext context)
Get or produce the actual Silhouette plot.DoubleDBIDList[]
getSilhouetteValues()
Get the silhouette values
-
-
-
Field Detail
-
projector
SilhouettePlotProjector projector
The projector we were generated from.
-
-
Constructor Detail
-
SilhouetteProjection
public SilhouetteProjection(SilhouettePlotProjector silhouettePlotProjector)
Constructor.- Parameters:
silhouettePlotProjector
- Silhouette projector
-
-
Method Detail
-
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.
-
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)
Description copied from interface:Projection
Get the scale class for a particular dimension.- Specified by:
getScale
in interfaceProjection
- Parameters:
d
- Dimension- Returns:
- Scale class
-
getSilhouettePlot
public SilhouettePlot getSilhouettePlot(VisualizerContext context)
Get or produce the actual Silhouette plot.- Parameters:
context
- Context to use- Returns:
- Plot
-
getResult
public Clustering<?> getResult()
Get the underlying Clustering from which the silhouette values are calculated.- Returns:
- Clustering.
-
getSilhouetteValues
public DoubleDBIDList[] getSilhouetteValues()
Get the silhouette values- Returns:
- silhouette values
-
getProjector
public Projector getProjector()
Description copied from interface:Projection
Projector used for generating this projection.- Specified by:
getProjector
in interfaceProjection
- Returns:
- Projector
-
-