public class ClusterIntersectionSimilarityFunction extends AbstractPrimitiveSimilarityFunction<Cluster<?>> implements PrimitiveDistanceFunction<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 representation to get the actual similarity query.
|
boolean |
isMetric()
Is this distance function metric (in particular, does it satisfy the
triangle equation?)
|
double |
similarity(Cluster<?> o1,
Cluster<?> o2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSymmetric
public static final ClusterIntersectionSimilarityFunction STATIC
public ClusterIntersectionSimilarityFunction()
STATIC
!public double similarity(Cluster<?> o1, Cluster<?> o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<Cluster<?>>
similarity
in class AbstractPrimitiveSimilarityFunction<Cluster<?>>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic double distance(Cluster<?> o1, Cluster<?> o2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<Cluster<?>>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<Cluster<?>>
true
when metric.public <T extends Cluster<?>> DistanceSimilarityQuery<T> instantiate(Relation<T> relation)
SimilarityFunction
instantiate
in interface DistanceFunction<Cluster<?>>
instantiate
in interface SimilarityFunction<Cluster<?>>
instantiate
in class AbstractPrimitiveSimilarityFunction<Cluster<?>>
relation
- Representation to usepublic SimpleTypeInformation<? super Cluster<?>> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface DistanceFunction<Cluster<?>>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<Cluster<?>>
getInputTypeRestriction
in interface PrimitiveSimilarityFunction<Cluster<?>>
getInputTypeRestriction
in interface SimilarityFunction<Cluster<?>>
getInputTypeRestriction
in class AbstractPrimitiveSimilarityFunction<Cluster<?>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.