pwtools.signal.scale

pwtools.signal.scale(x, copy=True)[source]

Scale x to unity.

Subtract min and divide by (max-min).

Parameters:
  • x (array_like)

  • copy (bool) – copy x before scaling

Return type:

x_scaled