Package jline.api.measures
Class Ms_relatentropyKt
-
- All Implemented Interfaces:
public final class Ms_relatentropyKt
-
-
Method Summary
Modifier and Type Method Description final static Double
ms_relatentropy(Matrix x, Matrix y)
Compute relative entropy (a.k.a KL divergence) z=KL(p(x)||p(y)) of two discrete variables x and y. -
-
Method Detail
-
ms_relatentropy
final static Double ms_relatentropy(Matrix x, Matrix y)
Compute relative entropy (a.k.a KL divergence) z=KL(p(x)||p(y)) of two discrete variables x and y.
- Parameters:
x
- first matrixy
- second matrix of the same length- Returns:
relative entropy (a.k.a KL divergence) z=KL(p(x)||p(y))
-
-
-
-