@Reference(authors="E. B. Fowlkes, C. L. Mallows", title="A method for comparing two hierarchical clusterings", booktitle="Journal of the American Statistical Association, Vol. 78 Issue 383", url="https://doi.org/10.2307/2288117", bibkey="doi:10.2307/2288117") public class ClusteringFowlkesMallowsSimilarityFunction extends java.lang.Object implements ClusteringDistanceSimilarityFunction, NormalizedSimilarityFunction<Clustering<?>>
Reference:
E. B. Fowlkes, C. L. Mallows
A method for comparing two hierarchical clusterings
In: Journal of the American Statistical Association, Vol. 78 Issue 383
Modifier and Type | Class and Description |
---|---|
static class |
ClusteringFowlkesMallowsSimilarityFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static ClusteringFowlkesMallowsSimilarityFunction |
STATIC
Static instance.
|
Constructor and Description |
---|
ClusteringFowlkesMallowsSimilarityFunction()
Constructor - use the static instance
STATIC ! |
Modifier and Type | Method and Description |
---|---|
double |
distance(Clustering<?> o1,
Clustering<?> o2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
SimpleTypeInformation<? super Clustering<?>> |
getInputTypeRestriction()
Get the input data type of the function.
|
<T extends Clustering<?>> |
instantiate(Relation<T> relation)
Instantiate with a representation to get the actual similarity query.
|
boolean |
isMetric()
Is this distance function metric (satisfy the triangle inequality)
|
double |
similarity(Clustering<?> o1,
Clustering<?> o2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSymmetric
isSquared
public static final ClusteringFowlkesMallowsSimilarityFunction STATIC
public ClusteringFowlkesMallowsSimilarityFunction()
STATIC
!public double similarity(Clustering<?> o1, Clustering<?> o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<Clustering<?>>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic double distance(Clustering<?> o1, Clustering<?> o2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<Clustering<?>>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<Clustering<?>>
true
when metric.public <T extends Clustering<?>> DistanceSimilarityQuery<T> instantiate(Relation<T> relation)
SimilarityFunction
instantiate
in interface DistanceFunction<Clustering<?>>
instantiate
in interface PrimitiveDistanceFunction<Clustering<?>>
instantiate
in interface ClusteringDistanceSimilarityFunction
instantiate
in interface PrimitiveSimilarityFunction<Clustering<?>>
instantiate
in interface SimilarityFunction<Clustering<?>>
relation
- Representation to usepublic SimpleTypeInformation<? super Clustering<?>> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface DistanceFunction<Clustering<?>>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<Clustering<?>>
getInputTypeRestriction
in interface SimilarityFunction<Clustering<?>>
Copyright © 2019 ELKI Development Team. License information.