Class AbstractMTree.Statistics
- java.lang.Object
-
- elki.index.tree.metrical.mtreevariants.AbstractMTree.Statistics
-
- Enclosing class:
- AbstractMTree<O,N extends AbstractMTreeNode<O,N,E>,E extends MTreeEntry,S extends MTreeSettings<O,N,E>>
public class AbstractMTree.Statistics extends java.lang.Object
Class for tracking some statistics.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected Counter
distanceCalcs
For counting the number of distance computations.protected Counter
knnQueries
For counting the number of knn queries answered.protected Counter
rangeQueries
For counting the number of range queries answered.
-
Constructor Summary
Constructors Constructor Description Statistics()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
countDistanceCalculation()
Count a distance computation.void
countKNNQuery()
Count a knn query invocation.void
countRangeQuery()
Count a range query invocation.void
logStatistics()
Log the statistics.
-
-
-
Field Detail
-
distanceCalcs
protected final Counter distanceCalcs
For counting the number of distance computations.
-
knnQueries
protected final Counter knnQueries
For counting the number of knn queries answered.
-
rangeQueries
protected final Counter rangeQueries
For counting the number of range queries answered.
-
-
Method Detail
-
countDistanceCalculation
public void countDistanceCalculation()
Count a distance computation.
-
countKNNQuery
public void countKNNQuery()
Count a knn query invocation.
-
countRangeQuery
public void countRangeQuery()
Count a range query invocation.
-
logStatistics
public void logStatistics()
Log the statistics.
-
-