For a time series \(X,\) compute the phase, the time of the year when there is a peak

mean_phase_peak(t, X, window = 180)

Arguments

t

the times

X

the data

window

days around t