public class DistanceFunctionVisualization extends AbstractVisFactory
Modifier and Type | Class and Description |
---|---|
class |
DistanceFunctionVisualization.Instance
Instance, visualizing a particular set of kNNs
|
Modifier and Type | Field and Description |
---|---|
static String |
NAME
A short name characterizing this Visualizer.
|
Constructor and Description |
---|
DistanceFunctionVisualization()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Element |
drawCosine(SVGPlot svgp,
Projection2D proj,
NumberVector mid,
double angle)
Visualizes Cosine and ArcCosine distance functions
|
static double |
getLPNormP(AbstractMaterializeKNNPreprocessor<?> kNN)
Get the "p" value of an Lp norm.
|
static boolean |
isAngularDistance(AbstractMaterializeKNNPreprocessor<?> kNN)
Test whether the given preprocessor used an angular distance function
|
Visualization |
makeVisualization(VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Produce a visualization instance for the given task
|
void |
processNewResult(VisualizerContext context,
Object start)
Add visualizers for the given result (tree) to the context.
|
allowThumbnails, makeVisualizationOrThumbnail
public static final String NAME
public Visualization makeVisualization(VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
VisFactory
makeVisualization
in interface VisFactory
makeVisualization
in class AbstractVisFactory
task
- Visualization taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projectionpublic void processNewResult(VisualizerContext context, Object start)
VisFactory
context
- Visualization contextstart
- Result to processpublic static double getLPNormP(AbstractMaterializeKNNPreprocessor<?> kNN)
kNN
- kNN preprocessorpublic static boolean isAngularDistance(AbstractMaterializeKNNPreprocessor<?> kNN)
kNN
- kNN preprocessorpublic static Element drawCosine(SVGPlot svgp, Projection2D proj, NumberVector mid, double angle)
svgp
- SVG Plotproj
- Visualization projectionmid
- mean vectorangle
- Opening angle in radiansCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.