Skip to content

Tessero\Signal\ShortTimeFFT

← All classes

AI assistant

Build this with Claude Code, Cursor or Copilot

Copy a Tessero-tuned prompt for Tessero\Signal\ShortTimeFFT, grounded in 15 real API signatures , into your IDE's AI. No chatbot, just exact context.

__construct
__construct(array $win, int $hop, float $fs = 1.0, ?int $mfft = null, string $fftMode = 'onesided', ?int $phaseShift = 0)
onesidedFft
onesidedFft(): bool
fPts
fPts(): int
deltaT
deltaT(): float
deltaF
deltaF(): float
f
f(): array

rfftfreq / fftfreq spacing, as a flat list.

pMin
pMin(): int
kMin
kMin(): int
pMax
pMax(int $n): int
kMax
kMax(int $n): int
pNum
pNum(int $n): int
pRange
pRange(int $n, ?int $p0 = null, ?int $p1 = null): array
stft
stft(array $x): array

Short-time Fourier transform of a real 1-D signal.

istft
istft(array $S, int $k0 = 0, ?int $k1 = null): array

Inverse STFT reconstructing the real signal (scipy ShortTimeFFT.istft).

spectrogram
spectrogram(array $x): array

Spectrogram = |stft|^2 (scipy ShortTimeFFT.spectrogram, default).

dualWin
dualWin(): array

Canonical dual window (scipy _calc_dual_canonical_window).