de.lmu.ifi.dbs.elki.algorithm.result
Class KNNDistanceOrderResult<O extends DatabaseObject,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult<O>
de.lmu.ifi.dbs.elki.algorithm.result.KNNDistanceOrderResult<O,D>
- Type Parameters:
O
- the type of DatabaseObjects handled by this ResultD
- the type of Distance used by this Result
todo arthur comment
- All Implemented Interfaces:
- Result<O>, Loggable
public class KNNDistanceOrderResult<O extends DatabaseObject,D extends Distance<D>>
- extends AbstractResult<O>
- Author:
- Arthur Zimek
Fields inherited from interface de.lmu.ifi.dbs.elki.algorithm.result.Result |
SEPARATOR |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
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
KNNDistanceOrderResult
public KNNDistanceOrderResult(Database<O> db,
List<D> knnDistances)
- Parameters:
db
- knnDistances
-
output
public void output(File out,
Normalization<O> normalization,
List<AttributeSettings> settings)
throws UnableToComplyException
- Description copied from interface:
Result
- Writes the clustering result to the given file.
Clustering result implementations, which are likely to
provide several clusters are supposed to use the filename
as prefix for every file to create and to append a proper suffix.
In case of occuring IOExceptions the output is expected
to be given at the standard-out. Therefore this behaviour
should be also achievable by giving a null-Object as parameter.
- Specified by:
output
in interface Result<O extends DatabaseObject>
- Overrides:
output
in class AbstractResult<O extends DatabaseObject>
- Parameters:
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
- Throws:
UnableToComplyException
- if any feature vector is not compatible with values initialized during normalization- See Also:
Result.output(java.io.File,de.lmu.ifi.dbs.elki.normalization.Normalization,java.util.List)
output
public void output(PrintStream outStream,
Normalization<O> normalization,
List<AttributeSettings> settings)
throws UnableToComplyException
- Description copied from interface:
Result
- Writes the clustering result to the given stream.
- Parameters:
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
- Throws:
UnableToComplyException
- if any feature vector is not compatible with values initialized during normalization