Sampling with periodically varying rates