WritableDataStore<SODModel<?>> sod_models = DataStoreUtil.makeStorage(relation.getDBIDs(), DataStoreFactory.HINT_STATIC, SODModel.class);
DoubleMinMax minmax = new DoubleMinMax();
for(Iterator<DBID> iter = relation.iterDBIDs(); iter.hasNext();) {
DBID queryObject = iter.next();
if(progress != null) {
progress.incrementProcessed(logger);
}
DBIDs knnList = getKNN(relation, snnInstance, queryObject).asDBIDs();
SODModel<V> model = new SODModel<V>(relation, knnList, alpha, relation.get(queryObject));
sod_models.put(queryObject, model);
minmax.put(model.getSod());