Data Science, Vibration Analysis, Predictive Maintenance.
np.random.rand(signal.shape[0]) irregular_timesteps = timesteps[random_mix >= (1.0 - fraction)] irregular_signal = signal[random_mix >= (1.0 - fraction)] # Plot signal + irregulary-sampled signal plt.figure(figsize=(14,4)) plt.plot(timesteps, signal, 'k', alpha=0.3, label="Original signal")