public class DistanceFunctionVisualization extends AbstractVisFactory
Modifier and Type | Class and Description |
---|---|
class |
DistanceFunctionVisualization.Instance<D extends NumberDistance<D,?>>
Instance, visualizing a particular set of kNNs
|
Modifier and Type | Field and Description |
---|---|
static String |
NAME
A short name characterizing this Visualizer.
|
thumbmask
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)
Produce a visualization instance for the given task
|
void |
processNewResult(HierarchicalResult baseResult,
Result result)
Add visualizers for the given result (tree) to the context.
|
allowThumbnails, makeVisualizationOrThumbnail
public static final String NAME
public Visualization makeVisualization(VisualizationTask task)
VisFactory
makeVisualization
in interface VisFactory
makeVisualization
in class AbstractVisFactory
task
- Visualization taskpublic void processNewResult(HierarchicalResult baseResult, Result result)
VisFactory
baseResult
- Context to work withresult
- 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 radians