Search in sources :

Example 1 with ClusterOrder

use of de.lmu.ifi.dbs.elki.algorithm.clustering.optics.ClusterOrder in project elki by elki-project.

the class OPTICSSteepAreaVisualization method processNewResult.

@Override
public void processNewResult(VisualizerContext context, Object result) {
    VisualizationTree.findVis(context, result).filter(OPTICSProjector.class).forEach(p -> {
        ClusterOrder co = p.getResult();
        It<OPTICSXi.SteepAreaResult> r = co.getHierarchy().iterChildren(co).filter(OPTICSXi.SteepAreaResult.class);
        if (r.valid()) {
            final VisualizationTask task = // 
            new VisualizationTask(this, NAME, p.getResult(), null).level(VisualizationTask.LEVEL_DATA + 1);
            context.addVis(p, task);
            context.addVis(r.get(), task);
        }
    });
}
Also used : VisualizationTask(de.lmu.ifi.dbs.elki.visualization.VisualizationTask) OPTICSProjector(de.lmu.ifi.dbs.elki.visualization.projector.OPTICSProjector) ClusterOrder(de.lmu.ifi.dbs.elki.algorithm.clustering.optics.ClusterOrder) OPTICSXi(de.lmu.ifi.dbs.elki.algorithm.clustering.optics.OPTICSXi)

Aggregations

ClusterOrder (de.lmu.ifi.dbs.elki.algorithm.clustering.optics.ClusterOrder)1 OPTICSXi (de.lmu.ifi.dbs.elki.algorithm.clustering.optics.OPTICSXi)1 VisualizationTask (de.lmu.ifi.dbs.elki.visualization.VisualizationTask)1 OPTICSProjector (de.lmu.ifi.dbs.elki.visualization.projector.OPTICSProjector)1