{ } Raw JSON

bundles / scipy 1.17.1 / scipy / signal / _short_time_fft / ShortTimeFFT / k_max

function

scipy.signal._short_time_fft:ShortTimeFFT.k_max

source: /scipy/signal/_short_time_fft.py :1717

Signature

def   k_max ( self n : int )  →  int

Summary

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

Extended Summary

k_max - 1 is the largest sample index of the slice p_max - 1 for a given input signal of n samples. A detailed example is provided in the tutorial_stft_sliding_win section of the user_guide.

Parameters

n : int

Number of samples of input signal (must be ≥ half of the window length).

See also

ShortTimeFFT

Class this method belongs to.

k_min

The smallest possible signal index.

p_max

Index of first non-overlapping upper time slice.

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.k_max