distribute_MUs_reg: Distribute motor units on a regular grid across the muscle...

View source: R/setup_muscles.r

distribute_MUs_regR Documentation

Distribute motor units on a regular grid across the muscle cross-section

Description

Deterministically create a regular grid of MU positions across the muscle cross section for a muscle with a rectangular base shape. Assign the same area

Usage

distribute_MUs_reg(MUs, num_MUs_x, num_MUs_y, overlap = 0)

Arguments

MUs

A list of MU objects. Must contain num_MUs_x * num_MUs_y MUs.

num_MUs_x

The number of MUs to be placed in one row in x direction.

num_MUs_y

The number of MUs to be placed in one row in y direction.

overlap

The amount of overlap to occur between neighboring MU regions. Currently, only overlap == 0 is implemented.

Details

The MU areas are obtained by simple division of the unit square into a (num_MUs_x x num_MUs_y) grid. No randomness is involved in the MU distribution. All MUs are of the same size. Currently, only exact division of the muscle area into MU areas is implemeted, i.e., no overlapping MUs and no muscle sections without MUs.

Value

A list of MU objects, containing the elements of MUs but with additional properties:

  • "$pos"The relative 2-D position (i.e. from [0,1] x [0,1]) of the MUs center on the muscle cross section.

  • "$length_x"The relative size of the MU's surrounding rectangle box in x direction on the muscle cross section. Value between 0 and 1. Used to transform coordinates relative to the MU area to coordinates relative to the muscle area.

  • "$length_y"The relative size of the MU's surrounding rectangle box in y direction on the muscle cross section. Value between 0 and 1. Used to transform coordinates relative to the MU area to coordinates relative to the muscle area.


ime-luebeck/semgsim documentation built on April 14, 2022, 11:02 p.m.