decimate.ts uses stats::window