@Reference(authors="P. Jaccard", title="Distribution de la florine alpine dans la Bassin de Dranses et dans quelques regiones voisines", booktitle="Bulletin del la Soci\u00e9t\u00e9 Vaudoise des Sciences Naturelles") public class ClusterJaccardSimilarityFunction extends AbstractPrimitiveSimilarityFunction<Cluster<?>> implements PrimitiveDistanceFunction<Cluster<?>>
P. Jaccard
Distribution de la florine alpine dans la Bassin de Dranses et dans quelques
regiones voisines
Bulletin del la Société Vaudoise des Sciences Naturelles
Modifier and Type | Class and Description |
---|---|
static class |
ClusterJaccardSimilarityFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static ClusterJaccardSimilarityFunction |
STATIC
Static instance.
|
Constructor and Description |
---|
ClusterJaccardSimilarityFunction()
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 ClusterJaccardSimilarityFunction STATIC
public ClusterJaccardSimilarityFunction()
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.