def artificial_data(): """Generate 50 data points spaced of 1 hour Ti: Indoor temperature To: Outdoor temperature Tb: Boundary temperature Qgh: Global horizontal solar radiation Qh: Heat supplied by heaters Qv: Heat supplied by ventilation """ n = 50 # number of points df = pd.DataFrame({ 'Ti': generate_sine(n=n, amplitude=3.0, phase=np.pi / 3.0, offset=20.0)[1], 'To': generate_sine(n=n)[1], 'Tb': generate_sine(n=n, amplitude=2.0, phase=np.pi / 4.0, offset=14.0)[1], 'Qgh': generate_sine(n=n, amplitude=800.0, clip_to_0=True)[1], 'Qh': generate_random_binary(n=n), 'Qv': generate_sine(n=n, amplitude=200.0, offset=100.0)[1], }) df.index /= sT return df
def data_Periodic(): """Generate artificial data for Periodic covariance""" t, y = generate_sine(n=50, bounds=(0, 2), period=1.0, amplitude=1.0, random=True, noise_std=0.3) return pd.DataFrame(index=t, data=y, columns=['y'])