|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult<O>
de.lmu.ifi.dbs.elki.algorithm.result.PointerRepresentation<O,D>
O
- the type of DatabaseObjects handled by this ResultD
- the type of Distance used by this Resultpublic class PointerRepresentation<O extends DatabaseObject,D extends Distance<D>>
Provides the result of the single link algorithm SLINK.
Field Summary | |
---|---|
private DistanceFunction<O,D> |
distanceFunction
The distance function this pointer representation was computed with. |
private HashMap<Integer,SLINK.SLinkDistance> |
lambda
The values of the function Lambda of the pointer representation. |
private HashMap<Integer,Integer> |
pi
The values of the function Pi of the pointer representation. |
Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult |
---|
db, FILE_EXTENSION |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Fields inherited from interface de.lmu.ifi.dbs.elki.algorithm.result.Result |
---|
SEPARATOR |
Constructor Summary | |
---|---|
PointerRepresentation(HashMap<Integer,Integer> pi,
HashMap<Integer,SLINK.SLinkDistance> lambda,
DistanceFunction<O,D> distanceFunction,
Database<O> database)
Creates a new pointer representation. |
Method Summary | |
---|---|
Collection<List<Integer>> |
getClusters(String distancePattern)
Returns the clustering result for a given distance threshold. |
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. |
String |
toString()
Returns a string representation of this pointer representation. |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.result.AbstractResult |
---|
getDatabase, writeHeader |
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, wait, wait, wait |
Field Detail |
---|
private HashMap<Integer,Integer> pi
private HashMap<Integer,SLINK.SLinkDistance> lambda
private DistanceFunction<O extends DatabaseObject,D extends Distance<D>> distanceFunction
Constructor Detail |
---|
public PointerRepresentation(HashMap<Integer,Integer> pi, HashMap<Integer,SLINK.SLinkDistance> lambda, DistanceFunction<O,D> distanceFunction, Database<O> database)
pi
- the values of the function Pi of the pointer representationlambda
- the values of the function Lambda of the pointer
representationdistanceFunction
- the distance function this pointer representation was computed
withdatabase
- the database containing the objectsMethod Detail |
---|
public void output(File out, Normalization<O> normalization, List<AttributeSettings> settings) throws UnableToComplyException
Result
output
in interface Result<O extends DatabaseObject>
output
in class AbstractResult<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
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 String toString()
toString
in class Object
public Collection<List<Integer>> getClusters(String distancePattern)
distancePattern
- the pattern of the threshold
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |