Number of periods summed over by PeriodicMDN is now adaptable