[DOC] Explain relationship between recording duration and STFT output dimensions #44
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Documentation Type
Thesis Chapter/Section
Description
Need to document the relationship between original time-domain signal duration and resulting STFT output dimensions. Specifically, explain why 256 seconds of accelerometer data processed with STFT results in a dimension of 513 time bins when using a hop size of 0.5 seconds, creating a shape of (513,513) for the magnitude array.
Current State
The thesis currently describes the STFT parameters but lacks a clear explanation of how the original signal duration directly affects the resulting time bins in the STFT output. The relationship between sampling frequency, window size, hop size, and resulting dimensions needs clarification.
Proposed Changes
Add a detailed explanation in Section X.Y of how the STFT time bins are calculated:
Include a paragraph explaining how the 0.5-second hop size relates to the time resolution
Add a diagram showing how window size and hop size create overlapping segments that result in the specific number of time bins
Explain the complete resulting shape (513,513) where:
Include a note on how changing parameters would affect output dimensions
Documentation Location
latex/chapters/methodology/signal_processing.tex
Priority
Medium (helpful but not urgent)
Target Audience
Thesis Committee/Reviewers
References
Additional Notes
This explanation is essential for understanding both the theoretical foundation and the practical implementation of the spectral analysis in my thesis. It will tie directly to the recent bug fix in issue #43 where the export shape was incorrect. The documentation should emphasize why these specific values were chosen and how they optimize the time-frequency resolution tradeoff for this specific analysis.