de.lmu.ifi.dbs.elki.result
Class KNNDistanceOrderResult<D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
de.lmu.ifi.dbs.elki.result.BasicResult
de.lmu.ifi.dbs.elki.result.KNNDistanceOrderResult<D>
- Type Parameters:
D
- the type of Distance used by this Result
- All Implemented Interfaces:
- HierarchicalResult, IterableResult<D>, Result, Iterable<D>
public class KNNDistanceOrderResult<D extends Distance<D>>
- extends BasicResult
- implements IterableResult<D>
Wraps a list containing the knn distances.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
knnDistances
private final List<D extends Distance<D>> knnDistances
- Store the kNN Distances
KNNDistanceOrderResult
public KNNDistanceOrderResult(String name,
String shortname,
List<D> knnDistances)
- Construct result
- Parameters:
name
- The long name (for pretty printing)shortname
- the short name (for filenames etc.)knnDistances
- distance list to wrap.
iterator
public Iterator<D> iterator()
- Return an iterator.
- Specified by:
iterator
in interface IterableResult<D extends Distance<D>>
- Specified by:
iterator
in interface Iterable<D extends Distance<D>>
- Returns:
- iterator