public class ClusterIntersectionSimilarityFunction extends java.lang.Object implements PrimitiveDistanceFunction<Cluster<?>>, PrimitiveSimilarityFunction<Cluster<?>>
Modifier and Type | Class and Description |
---|---|
static class |
ClusterIntersectionSimilarityFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static ClusterIntersectionSimilarityFunction |
STATIC
Static instance.
|
Constructor and Description |
---|
ClusterIntersectionSimilarityFunction()
Constructor - use the static instance
STATIC ! |
Modifier and Type | Method and Description |
---|---|
double |
distance(Cluster<?> o1,
Cluster<?> o2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
SimpleTypeInformation<? super Cluster<?>> |
getInputTypeRestriction()
Get the input data type of the function.
|
<T extends Cluster<?>> |
instantiate(Relation<T> relation)
Instantiate with a database to get the actual distance query.
|
boolean |
isMetric()
Is this distance function metric (satisfy the triangle inequality)
|
boolean |
isSymmetric()
Is this function symmetric?
|
double |
similarity(Cluster<?> o1,
Cluster<?> o2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSquared
public static final ClusterIntersectionSimilarityFunction STATIC
public ClusterIntersectionSimilarityFunction()
STATIC
!public double similarity(Cluster<?> o1, Cluster<?> o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<Cluster<?>>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic double distance(Cluster<?> o1, Cluster<?> o2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<Cluster<?>>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<Cluster<?>>
isSymmetric
in interface SimilarityFunction<Cluster<?>>
true
when symmetricpublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<Cluster<?>>
true
when metric.public <T extends Cluster<?>> DistanceSimilarityQuery<T> instantiate(Relation<T> relation)
DistanceFunction
instantiate
in interface DistanceFunction<Cluster<?>>
instantiate
in interface PrimitiveDistanceFunction<Cluster<?>>
instantiate
in interface PrimitiveSimilarityFunction<Cluster<?>>
instantiate
in interface SimilarityFunction<Cluster<?>>
relation
- The representation to usepublic SimpleTypeInformation<? super Cluster<?>> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<Cluster<?>>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<Cluster<?>>
getInputTypeRestriction
in interface SimilarityFunction<Cluster<?>>
Copyright © 2019 ELKI Development Team. License information.