frites.core.gccmi_1d_ccd#

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

GCCMI between 2 continuous variables conditioned on a discrete variable.

I = gccmi_ccd(x,y,z) returns the CMI between two (possibly multidimensional) continuous variables, x and y, conditioned on a third discrete variable z, estimated via a Gaussian copula.

Parameters
x, ynumpy:array_like

Continuous arrays of shape (n_epochs,) or (n_dimensions, n_epochs).

znumpy:array_like

Discret array of shape (n_epochs,)

Returns
cmipython:float

Conditional Mutual Information shared by x and y conditioned by z (in bits)