myogen.simulator.Muscle.resulting_number_of_innervated_fibers#
- property Muscle.resulting_number_of_innervated_fibers: ndarray#
Calculate the actual number of muscle fibers assigned to each motor unit.
This property returns the final fiber counts after the assignment process, which may differ slightly from the desired counts due to the stochastic assignment algorithm and discrete fiber distribution.
- Returns:
Array of length n_motor_units where each element represents the actual number of muscle fibers assigned to the corresponding motor unit. The sum of all elements equals the total number of muscle fibers.
- Return type:
- Raises:
ValueError – If muscle fiber assignment has not been completed yet.
Examples
>>> actual_counts = muscle.resulting_number_of_innervated_fibers >>> desired_counts = muscle.desired_number_of_innervated_fibers >>> print(f"Motor unit 0: desired {desired_counts[0]}, actual {actual_counts[0]}")
Notes
This property can be used to assess how well the assignment algorithm achieved the target fiber distribution. Large deviations may indicate the need to adjust assignment parameters or increase grid resolution.