phase function

Computing phased time series