Skip to main content
`Ctrl`+`K`

# scipy.signal.ShortTimeFFT.scale_to

ShortTimeFFT.scale_to(scaling)

  Scale window to obtain ‘magnitude’ or ‘psd’ scaling for the STFT.

  The window of a ‘magnitude’ spectrum has an integral of one, i.e., unit area for non-negative windows. This ensures that absolute the values of spectrum does not change if the length of the window changes (given the input signal is stationary).

  To represent the power spectral density (‘psd’) for varying length windows the area of the absolute square of the window needs to be unity.

  The `scaling` property shows the current scaling. The properties `fac_magnitude` and `fac_psd` show the scaling factors required to scale the STFT values to a magnitude or a psd spectrum.

  This method is called, if the initializer parameter `scale_to` is set.

  See also

  `fac_magnitude`

    Scaling factor for to a magnitude spectrum.

  `fac_psd`

    Scaling factor for to a power spectral density spectrum.

  `fft_mode`

    Mode of utilized FFT

  `scaling`

    Normalization applied to the window function.

  `ShortTimeFFT`

    Class this method belongs to.