sparse

package
v0.0.0-...-4977366 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL