frites.core.copnorm_cat_nd#

frites.core.copnorm_cat_nd(x, y, axis=- 1)[source]#

Categorical Copula normalization for multidimentional array.

This function apply the copnorm per categories.

Parameters
xnumpy:array_like

Array of data

ynumpy:array_like

Array of shape (n_epochs,) of integers describing the categories.

axispython:int | -1

Epoch (or trial) axis. By default, the last axis is considered

Returns
cxnumpy:array_like

Standard normal samples with the same empirical CDF value as the input.