Class TreeSphereVisualization
- java.lang.Object
-
- elki.visualization.visualizers.scatterplot.index.TreeSphereVisualization
-
- All Implemented Interfaces:
VisualizationProcessor
,VisFactory
public class TreeSphereVisualization extends java.lang.Object implements VisFactory
Visualize the bounding sphere of a metric index.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TreeSphereVisualization.Instance<N extends AbstractMTreeNode<?,N,E>,E extends MTreeEntry>
Instance for a particular tree.private static class
TreeSphereVisualization.Mode
Drawing modes.static class
TreeSphereVisualization.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INDEX
Generic tag to indicate the type of element.static java.lang.String
NAME
A short name characterizing this Visualizer.protected TreeSphereVisualization.Par
settings
Settings
-
Constructor Summary
Constructors Constructor Description TreeSphereVisualization(TreeSphereVisualization.Par settings)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
canVisualize(Relation<?> rel, AbstractMTree<?,?,?,?> tree)
Test for a visualizable index in the context's database.static double
getLPNormP(AbstractMTree<?,?,?,?> tree)
Get the "p" value of an Lp norm.Visualization
makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Produce a visualization instance for the given taskvoid
processNewResult(VisualizerContext context, java.lang.Object start)
Add visualizers for the given result (tree) to the context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.visualization.visualizers.VisFactory
allowThumbnails, makeVisualizationOrThumbnail
-
-
-
-
Field Detail
-
INDEX
public static final java.lang.String INDEX
Generic tag to indicate the type of element. Used in IDs, CSS-Classes etc.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
A short name characterizing this Visualizer.- See Also:
- Constant Field Values
-
settings
protected TreeSphereVisualization.Par settings
Settings
-
-
Constructor Detail
-
TreeSphereVisualization
public TreeSphereVisualization(TreeSphereVisualization.Par settings)
Constructor.- Parameters:
settings
- Settings
-
-
Method Detail
-
processNewResult
public void processNewResult(VisualizerContext context, java.lang.Object start)
Description copied from interface:VisFactory
Add visualizers for the given result (tree) to the context.- Specified by:
processNewResult
in interfaceVisFactory
- Specified by:
processNewResult
in interfaceVisualizationProcessor
- Parameters:
context
- Visualization contextstart
- Result to process
-
makeVisualization
public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Description copied from interface:VisFactory
Produce a visualization instance for the given task- Specified by:
makeVisualization
in interfaceVisFactory
- Parameters:
context
- Visualization contexttask
- Visualization taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projection- Returns:
- Visualization
-
getLPNormP
public static double getLPNormP(AbstractMTree<?,?,?,?> tree)
Get the "p" value of an Lp norm.- Parameters:
tree
- Tree to visualize- Returns:
- p value
-
canVisualize
public static boolean canVisualize(Relation<?> rel, AbstractMTree<?,?,?,?> tree)
Test for a visualizable index in the context's database.- Parameters:
rel
- Vector relationtree
- Tree to visualize- Returns:
- whether the tree is visualizable
-
-