This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / signal / _short_time_fft / ShortTimeFFT / p_max

function

scipy.signal._short_time_fft:ShortTimeFFT.p_max

source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_short_time_fft.py:1757

Signature

def p_max(self, n: int) → int

Summary

Index of first non-overlapping upper time slice for n sample input.

Extended Summary

Note that center point t[p_max] = (p_max(n)-1) * delta_t is typically larger than last time index t[n-1] == (n-1) * T. The upper border of samples indexes covered by the window slices is given by k_max. Furthermore, p_max does not denote the number of slices p_num since p_min is typically less than zero. A detailed example is provided in the tutorial_stft_sliding_win section of the user_guide.

Parameters

n : int

Number of samples of input.

Returns

: int

Index of first non-overlapping upper time slice for n sample input.

See also

ShortTimeFFT

Class this method belongs to.

k_max

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

k_min

The smallest possible signal index.

p_min

The smallest possible slice index.

p_num

Number of time slices, i.e., p_max - p_min.

p_range

Determine and validate slice index range.

Aliases

  • scipy.signal.ShortTimeFFT.p_max