@Reference(authors="E. Achtert, A. Hettab, H.-P. Kriegel, E. Schubert, A. Zimek", booktitle="Proc. 12th International Symposium on Spatial and Temporal Databases (SSTD), Minneapolis, MN, 2011", title="Spatial Outlier Detection: Data, Algorithms, Visualizations", url="http://dx.doi.org/10.1007/978-3-642-22922-0_41") public class KMLOutputHandler extends Object implements ResultHandler
E. Achtert, A. Hettab, H.-P. Kriegel, E. Schubert, A. Zimek:
Spatial Outlier Detection: Data, Algorithms, Visualizations.
in Proc. 12th International Symposium on Spatial and Temporal Databases
(SSTD), Minneapolis, MN, 2011
Modifier and Type | Class and Description |
---|---|
static class |
KMLOutputHandler.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private boolean |
autoopen
Automatically open at the end
|
private boolean |
compat
Compatibility mode.
|
(package private) File |
filename
Output file name
|
private static Logging |
LOG
Logger class to use.
|
private static int |
NUMSTYLES
Number of styles to use (lower reduces rendering complexity a bit)
|
(package private) OutlierScalingFunction |
scaling
Scaling function
|
Constructor and Description |
---|
KMLOutputHandler(File filename,
OutlierScalingFunction scaling,
boolean compat,
boolean autoopen)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private DoubleObjPair<Polygon> |
buildHullsRecursively(Cluster<Model> clu,
Hierarchy<Cluster<Model>> hier,
Map<Object,DoubleObjPair<Polygon>> hulls,
Relation<? extends NumberVector> coords)
Recursively step through the clusters to build the hulls.
|
static Color |
getColorForValue(double val)
Get color from a simple heatmap.
|
private StringBuilder |
makeDescription(Cluster<?> c)
Make an HTML description.
|
private StringBuilder |
makeDescription(Collection<Relation<?>> relations,
DBIDRef id)
Make an HTML description.
|
void |
processNewResult(ResultHierarchy hier,
Result newResult)
Process a result.
|
private void |
writeClusteringResult(XMLStreamWriter xmlw,
Clustering<Model> clustering,
Database database) |
private void |
writeNewlineOnDebug(XMLStreamWriter out)
Print a newline when debugging.
|
private void |
writeOutlierResult(XMLStreamWriter xmlw,
OutlierResult outlierResult,
Database database) |
private static final Logging LOG
private static final int NUMSTYLES
File filename
OutlierScalingFunction scaling
private boolean compat
private boolean autoopen
public KMLOutputHandler(File filename, OutlierScalingFunction scaling, boolean compat, boolean autoopen)
filename
- Output filenamescaling
- Scaling functioncompat
- Compatibility modeautoopen
- Automatically openpublic void processNewResult(ResultHierarchy hier, Result newResult)
ResultProcessor
processNewResult
in interface ResultProcessor
hier
- The base of the result tree.newResult
- Newly added result subtree.private void writeOutlierResult(XMLStreamWriter xmlw, OutlierResult outlierResult, Database database) throws XMLStreamException
XMLStreamException
private void writeClusteringResult(XMLStreamWriter xmlw, Clustering<Model> clustering, Database database) throws XMLStreamException
XMLStreamException
private DoubleObjPair<Polygon> buildHullsRecursively(Cluster<Model> clu, Hierarchy<Cluster<Model>> hier, Map<Object,DoubleObjPair<Polygon>> hulls, Relation<? extends NumberVector> coords)
clu
- Current clusterhier
- Clustering hierarchyhulls
- Hull mapprivate StringBuilder makeDescription(Collection<Relation<?>> relations, DBIDRef id)
relations
- Relationsid
- Object IDprivate StringBuilder makeDescription(Cluster<?> c)
c
- Clusterprivate void writeNewlineOnDebug(XMLStreamWriter out) throws XMLStreamException
out
- Output XML streamXMLStreamException
public static final Color getColorForValue(double val)
val
- Score valueCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.