Skip to main content
`Ctrl`+`K`
scipy.signal.ShortTimeFFT.

# scipy.signal.ShortTimeFFT.dual_win

property ShortTimeFFT.dual_win

  Dual window (canonical dual window by default).

  A STFT can be interpreted as the input signal being expressed as a weighted sum of modulated and time-shifted dual windows. If no dual window is given on instantiation, the canonical dual window, i.e., the window with the minimal energy (i.e., minimal L²-norm) is calculated. Alternative means for determining dual windows are provided by `closest_STFT_dual_window` and the `from_win_equals_dual` class-method. Note that `win` is also always a dual window of `dual_win`.

  `dual_win` has same length as `win`, namely `m_num` samples.

  If the dual window cannot be calculated a `ValueError` is raised. This attribute is read only and calculated lazily. To make this array immutable, its WRITEABLE flag is set to `FALSE`.

  See also

  `m_num`

    Number of samples in window `win` and `dual_win`.

  `win`

    Window function as real- or complex-valued 1d array.

  `from_win_equals_dual`

    Create instance where `win` and `dual_win` are equal.

  `closest_STFT_dual_window`

    Calculate dual window closest to a desired window.

  `numpy.ndarray.setflags`

    Modify array flags.

  `ShortTimeFFT`

    Class this property belongs to.