|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.evaluation.similaritymatrix.ComputeSimilarityMatrixImage<O>
O
- Object classpublic class ComputeSimilarityMatrixImage<O>
Compute a similarity matrix for a distance function.
Nested Class Summary | |
---|---|
static class |
ComputeSimilarityMatrixImage.Parameterizer<O>
Parameterization class. |
static class |
ComputeSimilarityMatrixImage.SimilarityMatrix
Similarity matrix image. |
Field Summary | |
---|---|
private DistanceFunction<? super O,? extends NumberDistance<?,?>> |
distanceFunction
The distance function to use |
(package private) static Logging |
logger
The logger. |
private ScalingFunction |
scaling
Scaling function to use |
static OptionID |
SCALING_ID
OptionID for the scaling function to use |
private boolean |
skipzero
Skip zero values. |
static OptionID |
SKIPZERO_ID
OptionID to skip zero values when plotting to increase contrast. |
Constructor Summary | |
---|---|
ComputeSimilarityMatrixImage(DistanceFunction<? super O,? extends NumberDistance<?,?>> distanceFunction,
ScalingFunction scaling,
boolean skipzero)
Constructor. |
Method Summary | |
---|---|
private ComputeSimilarityMatrixImage.SimilarityMatrix |
computeSimilarityMatrixImage(Relation<O> relation,
Iterator<DBID> iter)
Compute the actual similarity image. |
private Iterator<DBID> |
getDBIDIterator(IterableResult<?> ir)
Wrap the uncheckable cast with the manual check. |
void |
processNewResult(HierarchicalResult baseResult,
Result result)
Process a result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final Logging logger
public static final OptionID SCALING_ID
public static final OptionID SKIPZERO_ID
private DistanceFunction<? super O,? extends NumberDistance<?,?>> distanceFunction
private ScalingFunction scaling
private boolean skipzero
Constructor Detail |
---|
public ComputeSimilarityMatrixImage(DistanceFunction<? super O,? extends NumberDistance<?,?>> distanceFunction, ScalingFunction scaling, boolean skipzero)
distanceFunction
- Distance function to usescaling
- Scaling function to use for contrastskipzero
- Skip zero values when scaling.Method Detail |
---|
private ComputeSimilarityMatrixImage.SimilarityMatrix computeSimilarityMatrixImage(Relation<O> relation, Iterator<DBID> iter)
relation
- Relationiter
- DBID iterator
private Iterator<DBID> getDBIDIterator(IterableResult<?> ir)
ir
- Interable result
public void processNewResult(HierarchicalResult baseResult, Result result)
ResultProcessor
processNewResult
in interface ResultProcessor
baseResult
- The base of the result tree.result
- Newly added result subtree.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |