implement decimate, but sampling frequency is not correct
decimate ns5