deepdow.data.synthetic module¶
Collection of functions generating synthetic datasets.
-
sin_single
(n_timesteps, amplitude=1, freq=0.25, phase=0)[source]¶ Generate sine waves.
- Parameters
n_timesteps (int) – Number of timesteps.
amplitude (float) – The peak value.
freq (float) – Frequency - number of oscillations per timestep.
phase (float) – Offset.
- Returns
y – 1D array of shape (n_timesteps,).
- Return type
np.ndarray