sliding window regression filter