summaryrefslogtreecommitdiff
path: root/src/de/lmu/ifi/dbs/elki/evaluation/index
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/evaluation/index')
-rw-r--r--src/de/lmu/ifi/dbs/elki/evaluation/index/IndexPurity.java8
-rw-r--r--src/de/lmu/ifi/dbs/elki/evaluation/index/IndexStatistics.java6
-rw-r--r--src/de/lmu/ifi/dbs/elki/evaluation/index/package-info.java2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexPurity.java b/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexPurity.java
index 3fc928a9..ac0f3457 100644
--- a/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexPurity.java
+++ b/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexPurity.java
@@ -4,7 +4,7 @@ package de.lmu.ifi.dbs.elki.evaluation.index;
This file is part of ELKI:
Environment for Developing KDD-Applications Supported by Index-Structures
- Copyright (C) 2012
+ Copyright (C) 2013
Ludwig-Maximilians-Universität München
Lehr- und Forschungseinheit für Datenbanksysteme
ELKI Development Team
@@ -76,7 +76,7 @@ public class IndexPurity implements Evaluator {
Node<?> n = index.getNode(leaf.getEntryID());
final int total = n.getNumEntries();
- HashMap<String, Integer> map = new HashMap<String, Integer>(total);
+ HashMap<String, Integer> map = new HashMap<>(total);
for(int i = 0; i < total; i++) {
DBID id = ((SpatialPointLeafEntry) n.getEntry(i)).getDBID();
String label = lblrel.get(id);
@@ -96,9 +96,9 @@ public class IndexPurity implements Evaluator {
}
mv.put(gini);
}
- Collection<DoubleVector> col = new ArrayList<DoubleVector>();
+ Collection<DoubleVector> col = new ArrayList<>();
col.add(new DoubleVector(new double[] { mv.getMean(), mv.getSampleStddev() }));
- database.getHierarchy().add((Result) index, new CollectionResult<DoubleVector>("Gini coefficient of index", "index-gini", col));
+ database.getHierarchy().add((Result) index, new CollectionResult<>("Gini coefficient of index", "index-gini", col));
}
}
}
diff --git a/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexStatistics.java b/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexStatistics.java
index cce2c79f..f7c9caa8 100644
--- a/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexStatistics.java
+++ b/src/de/lmu/ifi/dbs/elki/evaluation/index/IndexStatistics.java
@@ -4,7 +4,7 @@ package de.lmu.ifi.dbs.elki.evaluation.index;
This file is part of ELKI:
Environment for Developing KDD-Applications Supported by Index-Structures
- Copyright (C) 2012
+ Copyright (C) 2013
Ludwig-Maximilians-Universität München
Lehr- und Forschungseinheit für Datenbanksysteme
ELKI Development Team
@@ -61,10 +61,10 @@ public class IndexStatistics implements Evaluator {
return;
}
for(IndexTree<?, ?> index : indexes) {
- header = new ArrayList<String>();
+ header = new ArrayList<>();
header.add(index.toString());
}
- Collection<Pair<String, String>> col = new ArrayList<Pair<String, String>>();
+ Collection<Pair<String, String>> col = new ArrayList<>();
IndexMetaResult analysis = new IndexMetaResult(col, header);
db.getHierarchy().add(db, analysis);
}
diff --git a/src/de/lmu/ifi/dbs/elki/evaluation/index/package-info.java b/src/de/lmu/ifi/dbs/elki/evaluation/index/package-info.java
index 2532b148..67fdaa98 100644
--- a/src/de/lmu/ifi/dbs/elki/evaluation/index/package-info.java
+++ b/src/de/lmu/ifi/dbs/elki/evaluation/index/package-info.java
@@ -5,7 +5,7 @@
This file is part of ELKI:
Environment for Developing KDD-Applications Supported by Index-Structures
-Copyright (C) 2012
+Copyright (C) 2013
Ludwig-Maximilians-Universität München
Lehr- und Forschungseinheit für Datenbanksysteme
ELKI Development Team