Window functions and indexes larger than N/2 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 &gt;= 0 &amp;&amp; n &lt;= N/2) 


what happens with the passed in index e.g. 1000 of a 1024 window size ?
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.