Use window and sample numbers (integers) instead of times (doubles)