How does the n index for a window with $0 \le |n| \le N/2$ e.g the Bohman window function, get implemented when having a specific window size?
if (n >= 0 && n <= N/2)
what happens with the passed in index e.g. 1000 of a 1024 window size ?
Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It only takes a minute to sign up.Sign up to join this community
The window is defined as $-N/2 \le n \le N/2$ i.e. symmetric about $n=0$.
So, for a 1024 window size, $n=-512$ to $n=+511$ should give you the appropriate coefficients.
If you subtract N/2 from n in the equation, then your window will be centered at N/2, and n can range from 0 to N (e.g. larger than N/2).