MinMaxNormalize

class torch_ecg.preprocessors.MinMaxNormalize(per_channel: bool = False, inplace: bool = True, **kwargs: Any)[source]

Bases: Normalize

Min-Max normalization.

Min-Max normalization is defined as

\[\frac{sig - \min(sig)}{\max(sig) - \min(sig)}\]
Parameters:
  • per_channel (bool, default False) – Whether to perform the normalization per channel.

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