resample This function resamples in the input sequence x supplied by a factor of p/q.