Documentation ¶
Index ¶
- func ConditionalMutualInformation(pxyz sm.SparseMatrix, ln lnFunc) float64
- func ConditionalMutualInformationBase2(pxyz sm.SparseMatrix) float64
- func ConditionalMutualInformationBaseE(pxyz sm.SparseMatrix) float64
- func MutualInformation(pxy sm.SparseMatrix, log lnFunc) float64
- func MutualInformationBase2(pxy sm.SparseMatrix) float64
- func MutualInformationBaseE(pxy sm.SparseMatrix) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConditionalMutualInformation ¶
func ConditionalMutualInformation(pxyz sm.SparseMatrix, ln lnFunc) float64
ConditionalMutualInformation calculates the conditional mutual information with the given lnFunc function
I(X,Y|Z) = \sum_x,y, p(x,y,z) (lnFunc(p(x,y|z)) - lnFunc(p(x|z)p(y|z)))
func ConditionalMutualInformationBase2 ¶
func ConditionalMutualInformationBase2(pxyz sm.SparseMatrix) float64
ConditionalMutualInformationBase2 calculates the conditional mutual information with base 2
I(X,Y|Z) = \sum_x,y, p(x,y,z) (log2(p(x,y|z)) - log2(p(x|z)p(y|z)))
func ConditionalMutualInformationBaseE ¶
func ConditionalMutualInformationBaseE(pxyz sm.SparseMatrix) float64
ConditionalMutualInformationBaseE calculates the conditional mutual information with base e I(X,Y|Z) = \sum_x,y, p(x,y,z) (ln(p(x,y|z)) - ln(p(x|z)p(y|z)))
func MutualInformation ¶
func MutualInformation(pxy sm.SparseMatrix, log lnFunc) float64
MutualInformation calculates the mutual information with the given lnFunc function
I(X,Y) = \sum_x,y p(x,y) (lnFunc(p(x,y)) - lnFunc(p(x)p(y)))
func MutualInformationBase2 ¶
func MutualInformationBase2(pxy sm.SparseMatrix) float64
MutualInformationBase2 calculates the mutual information with base 2
I(X,Y) = \sum_x,y p(x,y) (log2(p(x,y)) - log2(p(x)p(y)))
func MutualInformationBaseE ¶
func MutualInformationBaseE(pxy sm.SparseMatrix) float64
MutualInformationBaseE calculates the mutual information with base e
I(X,Y) = \sum_x,y p(x,y) (ln(p(x,y)) - ln(p(x)p(y)))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.