Window function, only a specific region is analyzed