Search in sources :

Example 1 with CombinedTypeInformation

use of de.lmu.ifi.dbs.elki.data.type.CombinedTypeInformation in project elki by elki-project.

the class EvaluateDBCV method processNewResult.

@Override
public void processNewResult(ResultHierarchy hier, Result newResult) {
    List<Clustering<?>> crs = Clustering.getClusteringResults(newResult);
    if (crs.size() < 1) {
        return;
    }
    Database db = ResultUtil.findDatabase(hier);
    TypeInformation typ = new CombinedTypeInformation(this.distanceFunction.getInputTypeRestriction(), TypeUtil.NUMBER_VECTOR_FIELD);
    Relation<O> rel = db.getRelation(typ);
    if (rel != null) {
        for (Clustering<?> cl : crs) {
            evaluateClustering(db, rel, cl);
        }
    }
}
Also used : CombinedTypeInformation(de.lmu.ifi.dbs.elki.data.type.CombinedTypeInformation) Database(de.lmu.ifi.dbs.elki.database.Database) Clustering(de.lmu.ifi.dbs.elki.data.Clustering) TypeInformation(de.lmu.ifi.dbs.elki.data.type.TypeInformation) CombinedTypeInformation(de.lmu.ifi.dbs.elki.data.type.CombinedTypeInformation)

Aggregations

Clustering (de.lmu.ifi.dbs.elki.data.Clustering)1 CombinedTypeInformation (de.lmu.ifi.dbs.elki.data.type.CombinedTypeInformation)1 TypeInformation (de.lmu.ifi.dbs.elki.data.type.TypeInformation)1 Database (de.lmu.ifi.dbs.elki.database.Database)1