O
- Object classpublic class ComputeSimilarityMatrixImage<O> extends java.lang.Object implements Evaluator
Modifier and Type | Class and Description |
---|---|
static class |
ComputeSimilarityMatrixImage.Parameterizer<O>
Parameterization class.
|
static class |
ComputeSimilarityMatrixImage.SimilarityMatrix
Similarity matrix image.
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<? super O> |
distanceFunction
The distance function to use
|
private static Logging |
LOG
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 and Description |
---|
ComputeSimilarityMatrixImage(DistanceFunction<? super O> distanceFunction,
ScalingFunction scaling,
boolean skipzero)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private ComputeSimilarityMatrixImage.SimilarityMatrix |
computeSimilarityMatrixImage(Relation<O> relation,
DBIDIter iter)
Compute the actual similarity image.
|
void |
processNewResult(ResultHierarchy hier,
Result result)
Process a result.
|
private static final Logging LOG
public static final OptionID SCALING_ID
public static final OptionID SKIPZERO_ID
private DistanceFunction<? super O> distanceFunction
private ScalingFunction scaling
private boolean skipzero
public ComputeSimilarityMatrixImage(DistanceFunction<? super O> distanceFunction, ScalingFunction scaling, boolean skipzero)
distanceFunction
- Distance function to usescaling
- Scaling function to use for contrastskipzero
- Skip zero values when scaling.private ComputeSimilarityMatrixImage.SimilarityMatrix computeSimilarityMatrixImage(Relation<O> relation, DBIDIter iter)
relation
- Relationiter
- DBID iteratorpublic void processNewResult(ResultHierarchy hier, Result result)
ResultProcessor
processNewResult
in interface ResultProcessor
hier
- The base of the result tree.result
- Newly added result subtree.Copyright © 2019 ELKI Development Team. License information.