Documentation ¶
Index ¶
- func ConditionalMutualInformation(xyz [][]int, ln lnFunc) []float64
- func ConditionalMutualInformationBase2(xyz [][]int) []float64
- func ConditionalMutualInformationBaseE(xyz [][]int) []float64
- func MutualInformation(data [][]int, log lnFunc) []float64
- func MutualInformationBase2(data [][]int) []float64
- func MutualInformationBaseE(data [][]int) []float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConditionalMutualInformation ¶
ConditionalMutualInformation calculates the conditional mutual information with the given lnFunc function for each (x_t,y_t,z_t)
I(X_t,Y_t|Z_t) = (lnFunc(p(x,y|z)) - lnFunc(p(x|z)p(y|z)))
func ConditionalMutualInformationBase2 ¶
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 ¶
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 ¶
MutualInformation calculates the mutual information for each state 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 ¶
MutualInformationBase2 calculates the mutual information with for each state with base 2
I(X,Y) = \sum_x,y p(x,y) (log2(p(x,y)) - log2(p(x)p(y)))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.