myogen.simulator.SurfaceEMG.add_noise#

SurfaceEMG.add_noise(snr_db, noise_type='gaussian')[source]#

Add noise to all electrode arrays.

This method adds realistic noise to the simulated surface EMG signals based on a specified signal-to-noise ratio. The noise characteristics can be customized to match different recording conditions.

Parameters:
  • snr_db (float) – Signal-to-noise ratio in dB. Higher values result in cleaner signals. Typical physiological EMG has SNR ranging from 10-40 dB.

  • noise_type (str, default "gaussian") – Type of noise to add. Currently supports “gaussian” for white noise.

Returns:

Noisy EMG signals for each electrode array. Results are stored in the noisy_surface_emg__tensors property after execution.

Return type:

list[SURFACE_EMG__TENSOR]

Raises:

ValueError – If surface EMG has not been simulated. Call simulate_surface_emg() first.