neurodsp.utils.norm.normalize_sig

neurodsp.utils.norm.normalize_sig(sig, mean=None, variance=None)[source]

Normalize the mean and variance of a signal.

Parameters
sig1d array

Signal to normalize.

variancefloat, optional

Variance to normalize to.

meanfloat, optional

New mean for data to have.

Returns
sig1d array

Input signal, with normalizations applied.