de.lmu.ifi.dbs.elki.result
Class KNNDistanceOrderResult<D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
      extended by de.lmu.ifi.dbs.elki.result.BasicResult
          extended by 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.


Field Summary
private  List<D> knnDistances
          Store the kNN Distances
 
Constructor Summary
KNNDistanceOrderResult(String name, String shortname, List<D> knnDistances)
          Construct result
 
Method Summary
 Iterator<D> iterator()
          Return an iterator.
 
Methods inherited from class de.lmu.ifi.dbs.elki.result.BasicResult
getLongName, getShortName
 
Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
addChildResult, getHierarchy, setHierarchy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Field Detail

knnDistances

private final List<D extends Distance<D>> knnDistances
Store the kNN Distances

Constructor Detail

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.
Method Detail

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

Release 0.4.0 (2011-09-20_1324)