NaiveNormalize

class torch_ecg.preprocessors.NaiveNormalize(mean: Real | Iterable[Real] = 0.0, std: Real | Iterable[Real] = 1.0, per_channel: bool = False, inplace: bool = True, **kwargs: Any)[source]

Bases: Normalize

Naive normalization

Naive normalization is done via

\[\frac{sig - mean}{std}\]
Parameters:
  • mean (numbers.Real or array_like, default 0.0) – Value(s) to be subtracted.

  • std (numbers.Real or array_like, default 1.0) – Value(s) to be divided.

  • per_channel (bool, default False) – Whether to perform the normalization per channel.

  • inplace (bool, default True) – Whether to perform the normalization in-place.