neurodsp.utils.norm.demean

neurodsp.utils.norm.demean(array, mean=0.0)[source]

Demean an array, updating to specified mean.

Parameters
array1d array

Data to demean.

meanfloat, optional, default: 0

New mean for data to have.

Returns
out1d array

Demeaned data.