# 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 >= 0 && n <= 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.
• @Helium3 It says $0 \le | n | \le N/2$, so $n$ can be negative. – Peter K. Jan 4 '16 at 19:45