View source: R/setup_muscles.r
calc_affine_param | R Documentation |
Calculates 'var2 = var2min + (var1i - var1min) / (var1max - var1min) * (var2max - var2min)' where the quotient '(var1i - var1min) / (var1max - var1min)' corresponds to function parameter 'ratio'.
calc_affine_param(min_val, max_val, ratio)
min_val |
Minimum value of the variable to calculate |
max_val |
Maximum value of the variable to calculate |
ratio |
Value between 0 and 1, indicating position between min and max |
(Scalar) value of the affine dependent parameter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.