Package elki.evaluation.similaritymatrix
Class ComputeSimilarityMatrixImage<O>
- java.lang.Object
-
- elki.evaluation.similaritymatrix.ComputeSimilarityMatrixImage<O>
-
- Type Parameters:
O
- Object class
- All Implemented Interfaces:
Evaluator
,ResultProcessor
public class ComputeSimilarityMatrixImage<O> extends java.lang.Object implements Evaluator
Compute a similarity matrix for a distance function.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComputeSimilarityMatrixImage.Par<O>
Parameterization class.static class
ComputeSimilarityMatrixImage.SimilarityMatrix
Similarity matrix image.
-
Constructor Summary
Constructors Constructor Description ComputeSimilarityMatrixImage(Distance<? super O> distance, ScalingFunction scaling, boolean skipzero)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ComputeSimilarityMatrixImage.SimilarityMatrix
computeSimilarityMatrixImage(Relation<O> relation, DBIDIter iter)
Compute the actual similarity image.void
processNewResult(java.lang.Object result)
Process a result.
-
-
-
Field Detail
-
LOG
private static final Logging LOG
The logger.
-
scaling
private ScalingFunction scaling
Scaling function to use
-
skipzero
private boolean skipzero
Skip zero values.
-
-
Constructor Detail
-
ComputeSimilarityMatrixImage
public ComputeSimilarityMatrixImage(Distance<? super O> distance, ScalingFunction scaling, boolean skipzero)
Constructor.- Parameters:
distance
- Distance function to usescaling
- Scaling function to use for contrastskipzero
- Skip zero values when scaling.
-
-
Method Detail
-
computeSimilarityMatrixImage
private ComputeSimilarityMatrixImage.SimilarityMatrix computeSimilarityMatrixImage(Relation<O> relation, DBIDIter iter)
Compute the actual similarity image.- Parameters:
relation
- Relationiter
- DBID iterator- Returns:
- result object
-
processNewResult
public void processNewResult(java.lang.Object result)
Description copied from interface:ResultProcessor
Process a result.- Specified by:
processNewResult
in interfaceResultProcessor
- Parameters:
result
- Newly added result subtree.
-
-