Skip to main content
`Ctrl`+`K`

# scipy.signal.ShortTimeFFT.p_num

ShortTimeFFT.p_num(n)

  Number of time slices for an input signal with n samples.

  It is given by `p_num` = `p_max` - `p_min` with `p_min` typically being negative. A detailed example is provided in the Sliding Windows section of the SciPy User Guide.

  See also

  `k_min`

    The smallest possible signal index.

  `k_max`

    First sample index after signal end not touched by a time slice.

  `lower_border_end`

    Where pre-padding effects end.

  `p_min`

    The smallest possible slice index.

  `p_max`

    Index of first non-overlapping upper time slice.

  `p_range`

    Determine and validate slice index range.

  `upper_border_begin`

    Where post-padding effects start.

  `ShortTimeFFT`

    Class this method belongs to.