Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.KNNDistanceOrderResult<D>
Type Parameters:
D - the type of Distance used by this Result
All Implemented Interfaces:
IterableResult<D>, Result, Iterable<D>

public class KNNDistanceOrderResult<D extends Distance<D>>
extends Object
implements IterableResult<D>

Wraps a list containing the knn distances.

Author:
Arthur Zimek

Field Summary
private  List<D> knnDistances
          Store the kNN Distances
 
Constructor Summary
KNNDistanceOrderResult(List<D> knnDistances)
          Construct result
 
Method Summary
 String getName()
          Get a user-understandable name for this result.
 Iterator<D> iterator()
          Return an iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knnDistances

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

Constructor Detail

KNNDistanceOrderResult

public KNNDistanceOrderResult(List<D> knnDistances)
Construct result

Parameters:
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

getName

public String getName()
Description copied from interface: Result
Get a user-understandable name for this result. Defaults may be returned such as "list" for a list result.

Specified by:
getName in interface Result
Returns:
result name

Release 0.3 (2010-03-31_1612)