Concept Flow - Frequency array generation (fftfreq)
Input: n (number of points), d (sample spacing)
Calculate frequency bins
Generate array of frequencies
Return frequency array
The function takes the number of points and sample spacing, calculates frequency bins, and returns an array of frequencies for FFT analysis.