myogen.simulator.SurfaceEMG.simulate_surface_emg#
- SurfaceEMG.simulate_surface_emg(motor_neuron_pool)[source]#
Generate surface EMG signals for all electrode arrays using the provided motor neuron pool.
This method convolves the pre-computed MUAP templates with the motor neuron spike trains to synthesize realistic surface EMG signals. The process includes temporal resampling to match the motor neuron pool timestep and supports both CPU and GPU acceleration.
- Parameters:
motor_neuron_pool (
MotorNeuronPool
) – Motor neuron pool with spike trains computed (seemyogen.simulator.MotorNeuronPool
).- Returns:
Surface EMG signals for each electrode array. Results are stored in the surface_emg__tensors property after execution.
- Return type:
list[SURFACE_EMG__TENSOR]
- Raises:
ValueError – If MUAP templates have not been generated. Call simulate_muaps() first.