frites.core.ent_1d_g#

frites.core.ent_1d_g(x, biascorrect=True, demeaned=False)[source]#

Entropy of a Gaussian variable in bits.

H = ent_g(x) returns the entropy of a (possibly multidimensional) Gaussian variable x with bias correction.

Parameters
xnumpy:array_like

Array of data of shape (n_epochs,)

biascorrectbool | python:True

Specifies whether bias correction should be applied to the estimated MI

demeanedbool | python:False

Specifies whether the input data already has zero mean (true if it has been copula-normalized)

Returns
hxpython:float

Entropy of the gaussian variable (in bits)