Package elki.math.statistics.dependence
Class JensenShannonEquiwidthDependence
- java.lang.Object
-
- elki.math.statistics.dependence.JensenShannonEquiwidthDependence
-
- All Implemented Interfaces:
Dependence
public class JensenShannonEquiwidthDependence extends java.lang.Object implements Dependence
Jensen-Shannon Divergence is closely related to mutual information.The output value is normalized, such that an evenly distributed and identical distribution will yield a value of 1. Independent distributions may still yield values close to .25, though.
TODO: Offer normalized and non-normalized variants?
- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JensenShannonEquiwidthDependence.Par
Parameterization class.-
Nested classes/interfaces inherited from interface elki.math.statistics.dependence.Dependence
Dependence.Utils
-
-
Field Summary
Fields Modifier and Type Field Description static JensenShannonEquiwidthDependence
STATIC
Static instance.
-
Constructor Summary
Constructors Modifier Constructor Description protected
JensenShannonEquiwidthDependence()
Constructor - useSTATIC
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A,B>
doubledependence(NumberArrayAdapter<?,A> adapter1, A data1, NumberArrayAdapter<?,B> adapter2, B data2)
Measure the dependence of two variables.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.math.statistics.dependence.Dependence
dependence, dependence, dependence
-
-
-
-
Field Detail
-
STATIC
public static final JensenShannonEquiwidthDependence STATIC
Static instance.
-
-
Constructor Detail
-
JensenShannonEquiwidthDependence
protected JensenShannonEquiwidthDependence()
Constructor - useSTATIC
instance.
-
-
Method Detail
-
dependence
public <A,B> double dependence(NumberArrayAdapter<?,A> adapter1, A data1, NumberArrayAdapter<?,B> adapter2, B data2)
Description copied from interface:Dependence
Measure the dependence of two variables.This is the more flexible API, which allows using different internal data representations.
- Specified by:
dependence
in interfaceDependence
- Type Parameters:
A
- First array typeB
- Second array type- Parameters:
adapter1
- First data adapterdata1
- First data setadapter2
- Second data adapterdata2
- Second data set- Returns:
- Dependence measure
-
-