myogen.simulator.ForceModel.generate_force#
- ForceModel.generate_force(
- spike_train__Block: SPIKE_TRAIN__Block,
Generate force output from motor unit spike trains using the Fuglevand model.
This method simulates muscle force by converting spike trains into force output through individual motor unit twitches with nonlinear gain modulation based on discharge rate. Each motor unit contributes to the total force according to its twitch properties and firing pattern. The output is resampled to match the recording_frequency__Hz parameter.
- Parameters:
spike_train__Block (
SPIKE_TRAIN__Block) – Spike train block containing spike train data for multiple motor neuron pools.- Returns:
Force output neo.AnalogSignal representing muscle force over time. Each channel corresponds to one motor neuron pool’s force response. Sampling rate matches the recording_frequency__Hz parameter.
- Return type:
FORCE__AnalogSignal
- Raises:
ValueError – If spike train matrix dimensions don’t match the number of motor units. If twitch parameters have not been computed.
Notes
The force generation follows these steps: 1. Convert spike trains to inter-pulse intervals (IPIs) 2. Calculate nonlinear gain based on discharge rates 3. Sum weighted twitch responses for each spike 4. Apply gain modulation to final force output 5. Resample output to match recording_frequency__Hz