myogen.simulator.SurfaceEMG.simulate_surface_emg#
- SurfaceEMG.simulate_surface_emg(
- spike_train__Block: SPIKE_TRAIN__Block,
Generate surface EMG signals for all electrode arrays using the provided spike train block.
This method convolves the pre-computed MUAP templates with the spike trains to synthesize realistic surface EMG signals. The process includes temporal resampling to match the spike train timestep and supports both CPU and GPU acceleration.
- Parameters:
spike_train__Block (
SPIKE_TRAIN__Block) – Block containing spike trains organized as segments (pools) with spiketrains.- Returns:
Surface EMG signals for each electrode array stored in a neo.Block. Results are stored in the surface_emg__tensors property after execution.
- Return type:
- Raises:
ValueError – If MUAP templates have not been generated. Call simulate_muaps() first.