scipy.signal.ShortTimeFFT.
p_range#
- ShortTimeFFT.p_range(n, p0=None, p1=None)[source]#
Determine and validate slice index range.
- Parameters:
- nint
Number of samples of input signal, assuming t[0] = 0.
- p0int | None
First slice index. If 0 then the first slice is centered at t = 0. If
Nonethenp_minis used. Note that p0 may be < 0 if slices are left of t = 0.- p1int | None
End of interval (last value is p1-1). If
Nonethen p_max(n) is used.
- Returns:
- p0_int
The fist slice index
- p1_int
End of interval (last value is p1-1).
See also
k_minThe smallest possible signal index.
k_maxFirst sample index after signal end not touched by a time slice.
lower_border_endWhere pre-padding effects end.
p_minThe smallest possible slice index.
p_maxIndex of first non-overlapping upper time slice.
p_numupper_border_beginWhere post-padding effects start.
ShortTimeFFTClass this property belongs to.
Notes
A
ValueErroris raised ifp_min <= p0 < p1 <= p_max(n)does not hold.