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