public class DistanceFunctionVisualization extends java.lang.Object implements VisFactory
Modifier and Type | Class and Description |
---|---|
class |
DistanceFunctionVisualization.Instance
Instance, visualizing a particular set of kNNs
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
A short name characterizing this Visualizer.
|
Constructor and Description |
---|
DistanceFunctionVisualization()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.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(VisualizerContext context,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Produce a visualization instance for the given task
|
void |
processNewResult(VisualizerContext context,
java.lang.Object start)
Add visualizers for the given result (tree) to the context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowThumbnails, makeVisualizationOrThumbnail
public static final java.lang.String NAME
public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
VisFactory
makeVisualization
in interface VisFactory
context
- Visualization contexttask
- Visualization taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projectionpublic void processNewResult(VisualizerContext context, java.lang.Object start)
VisFactory
processNewResult
in interface VisualizationProcessor
processNewResult
in interface VisFactory
context
- Visualization contextstart
- Result to processpublic static double getLPNormP(AbstractMaterializeKNNPreprocessor<?> kNN)
kNN
- kNN preprocessorpublic static boolean isAngularDistance(AbstractMaterializeKNNPreprocessor<?> kNN)
kNN
- kNN preprocessorpublic static org.w3c.dom.Element drawCosine(SVGPlot svgp, Projection2D proj, NumberVector mid, double angle)
svgp
- SVG Plotproj
- Visualization projectionmid
- mean vectorangle
- Opening angle in radiansCopyright © 2019 ELKI Development Team. License information.