|
a |
|
b/Docs/Applications/Other/StatisticalScalingPlugin.md |
|
|
1 |
--- |
|
|
2 |
gallery_title: "Statistical Scaling Plugin" |
|
|
3 |
gallery_image: "/Applications/images/StatisticalScalingPlugin.jpg" |
|
|
4 |
--- |
|
|
5 |
|
|
|
6 |
(sphx_glr_auto_examples_Other_plot_StatisticalScalingPlugin.py)= |
|
|
7 |
|
|
|
8 |
# Statistical Scaling Plugin |
|
|
9 |
|
|
|
10 |
````{sidebar} **Example** |
|
|
11 |
<img src="/Applications/images/StatisticalScalingPlugin.jpg" width="70%" align="center"> |
|
|
12 |
```` |
|
|
13 |
|
|
|
14 |
Plugin for scaling subjects based on an anthropometric database. |
|
|
15 |
|
|
|
16 |
This example shows how to use the Statistical Scaling Plugin. The plugin is a |
|
|
17 |
small app which allows you to simply specify a few anatomical or functional |
|
|
18 |
parameters when scaling the model. The plugin calculates the remaining (free) |
|
|
19 |
anthropometric variables based on the ANSUR [^f1] anthropometrical database. |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
:::{seealso} |
|
|
24 |
**Main file location in AMMR:** |
|
|
25 |
|
|
|
26 |
{menuselection}`Application --> Examples --> StatisticalScalingPlugin --> Main.any` |
|
|
27 |
::: |
|
|
28 |
|
|
|
29 |
The big advantage is that the correlation between variables are maintained, so |
|
|
30 |
the model will have realistic anthropometrical dimension as long as the |
|
|
31 |
constraints does not conflict (e.g. a very high stature with very short legs ) |
|
|
32 |
|
|
|
33 |
:::{figure} /Applications/Other/StatisticalScalingPlugin1.png |
|
|
34 |
:align: center |
|
|
35 |
::: |
|
|
36 |
|
|
|
37 |
The algorithm used by the plugin is based on principal component analysis (PCA) |
|
|
38 |
of the correlations between variables in the anthropometric database. An optimization |
|
|
39 |
problem is then solved minimizing the normalized principal component subject to |
|
|
40 |
the anthropometricall constraintsngiven by the user. Please see: |
|
|
41 |
|
|
|
42 |
> Rasmussen, J., Waagepetersen, R. P. & Rasmussen, K. P. |
|
|
43 |
> Projection of anthropometric correlation for virtual population modelling. |
|
|
44 |
> International Journal of Human Factors Modelling and Simulation 6, 16–30 (2018) |
|
|
45 |
|
|
|
46 |
:::{warning} |
|
|
47 |
The plugin can not be used to generate subjects which are very |
|
|
48 |
different from the population of the ANSUR database. For example children. |
|
|
49 |
::: |
|
|
50 |
|
|
|
51 |
## Use the plugin in other models |
|
|
52 |
|
|
|
53 |
The plugin can be used in any model as long as it uses the |
|
|
54 |
{ammr:bm_constant}`_SCALING_XYZ_` scaling law. It is also necessary to specify into |
|
|
55 |
which file the plugin should write the calculated anthropometrics. This is done |
|
|
56 |
by setting `#path ANSUR_PLUGIN_ANYMAN_FILE` model file which contains the |
|
|
57 |
anthropometrics |
|
|
58 |
. |
|
|
59 |
|
|
|
60 |
```AnyScriptDoc |
|
|
61 |
#define BM_SCALING _SCALING_XYZ_ |
|
|
62 |
|
|
|
63 |
#include "<ANYBODY_PATH_AMMR>/Tools/Plugins/ANSUR_Plugin.any" |
|
|
64 |
#path ANSUR_PLUGIN_ANYMAN_FILE "anthropometrics.any" |
|
|
65 |
|
|
|
66 |
// Ensure that the generated anthropometrics are |
|
|
67 |
#include "anthropometrics.any" |
|
|
68 |
``` |
|
|
69 |
|
|
|
70 |
```{rubric} Footnotes |
|
|
71 |
``` |
|
|
72 |
|
|
|
73 |
[^f1]: Gordon, C. C. et al. 1988 Anthropometric Survey of U.S. Army personnel: methods and summary statistics. (US Army Natick Research, Development and Engineering Center, 1989). |