@Reference(authors="M.-M. Deza, E. Deza", title="Dictionary of distances", booktitle="Dictionary of distances", url="https://doi.org/10.1007/978-3-642-00234-2", bibkey="doi:10.1007/978-3-642-00234-2") public class Kulczynski2SimilarityFunction extends AbstractVectorSimilarityFunction
\[ s_\text{Kulczynski-2}(\vec{x},\vec{y} := \tfrac{n}{2}\left(\tfrac{1}{\bar{x}}+\tfrac{1}{\bar{y}}\right) \sum\nolimits_i\min\{x_i,y_i\} \]
Reference:
M.-M. Deza and E. Deza
Dictionary of distances
TODO: add an optimized version for binary data.
Modifier and Type | Class and Description |
---|---|
static class |
Kulczynski2SimilarityFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static Kulczynski2SimilarityFunction |
STATIC_CONTINUOUS
Static instance.
|
Constructor and Description |
---|
Kulczynski2SimilarityFunction()
Deprecated.
Use
STATIC_CONTINUOUS instance instead. |
Modifier and Type | Method and Description |
---|---|
double |
similarity(NumberVector v1,
NumberVector v2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
getInputTypeRestriction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate
isSymmetric
public static final Kulczynski2SimilarityFunction STATIC_CONTINUOUS
@Deprecated public Kulczynski2SimilarityFunction()
STATIC_CONTINUOUS
instance instead.public double similarity(NumberVector v1, NumberVector v2)
PrimitiveSimilarityFunction
v1
- first DatabaseObjectv2
- second DatabaseObjectCopyright © 2019 ELKI Development Team. License information.