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