def one_to_nine_dates(self): ts = (np.arange(9, dtype=float) + 1) * 30 * 60 return utils.datetime_from_timestamp(ts)
def late_dates(self): ts = (np.arange(48 * 365, dtype=float) + 100) * 30 * 60 return utils.datetime_from_timestamp(ts)
def trim_both_dates(self): ts = (np.arange(48 * 365, dtype=float) + 1) * 30 * 60 ts = ts + (26 * pyEMIS.WEEKLY) ts[0] = ts[0] - (pyEMIS.WEEKLY * 2) ts[-1] = ts[-1] + (pyEMIS.WEEKLY * 2) return utils.datetime_from_timestamp(ts)
def dates(self): date = ((np.arange(self.n, dtype = float) + 1) * self.date_mu) + np.round(np.random.normal(0, self.date_sigma, self.n)) return utils.datetime_from_timestamp(date)