|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.algorithm.result.KNNJoinResult<O,D>
O - the type of DatabaseObjects handled by this ResultD - the type of Distance used by this Resultpublic class KNNJoinResult<O extends DatabaseObject,D extends Distance<D>>
Provides the result of a kNN-Join.
| Field Summary | |
|---|---|
private HashMap<Integer,KNNList<D>> |
knnLists
The kNN lists for each object. |
| Fields inherited from interface de.lmu.ifi.dbs.elki.algorithm.result.Result |
|---|
SEPARATOR |
| Constructor Summary | |
|---|---|
KNNJoinResult(HashMap<Integer,KNNList<D>> knnLists)
Creates a new KNNJoinResult. |
|
| Method Summary | |
|---|---|
D |
getKNNDistance(Integer id)
Returns the knn distance of the object with the specified id. |
KNNList<D> |
getKNNs(Integer id)
Returns the knns of the object with the specified id. |
void |
output(File out,
Normalization<O> normalization,
List<AttributeSettings> settings)
Writes the clustering result to the given file. |
void |
output(PrintStream outStream,
Normalization<O> normalization,
List<AttributeSettings> settings)
Writes the clustering result to the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private HashMap<Integer,KNNList<D extends Distance<D>>> knnLists
| Constructor Detail |
|---|
public KNNJoinResult(HashMap<Integer,KNNList<D>> knnLists)
knnLists - the kNN lists for each object| Method Detail |
|---|
public void output(File out,
Normalization<O> normalization,
List<AttributeSettings> settings)
throws UnableToComplyException
Result
output in interface Result<O extends DatabaseObject>out - file, which designates the location to write the results,
or which's name designates the prefix of any locations to write the results,
or which could remain null to designate the standard-out as location for output.normalization - Normalization to restore original values according to, if this action is supported
- may remain null.settings - the settings to be written into the header, if this parameter is null,
no header will be written
UnableToComplyException - if any feature vector is not compatible with values initialized during normalizationResult.output(File, Normalization, List)
public void output(PrintStream outStream,
Normalization<O> normalization,
List<AttributeSettings> settings)
throws UnableToComplyException
Result
output in interface Result<O extends DatabaseObject>outStream - the stream to write tonormalization - Normalization to restore original values according to, if this action is supported
- may remain null.settings - the settings to be written into the header, if this parameter is null,
no header will be written
UnableToComplyException - if any feature vector is not compatible with values initialized during normalizationpublic D getKNNDistance(Integer id)
id - the id of the object
public KNNList<D> getKNNs(Integer id)
id - the id of the object
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||