sigpyproc.io.rescale

On this page

sigpyproc.io.rescale#

Rescaling of streaming data to zero mean and unit variance.

This module contains the Rescale class for rescaling streaming data.

Classes

Rescale

A class to rescale streaming data to zero mean and unit variance.

class sigpyproc.io.rescale.Rescale(nchans, rescale_samples=16384, *, constant_offset_scale=False)[source]#

Bases: object

A class to rescale streaming data to zero mean and unit variance.

Parameters:
nchansint

Number of channels in the data.

rescale_samplesint, optional

Number of samples (per channel) to use for stats computation, by default 16384.

constant_offset_scalebool, optional

Whether to the offset/scale computed at first update for all, by default False.

Methods

execute(data)

Rescale the data to zero mean and unit variance.

execute(data)[source]#

Rescale the data to zero mean and unit variance.

Parameters:
dataNDArray[float32]

Flattened data array.

Returns:
NDArray[float32]

Rescaled data array.