Diese Funktion berechnet aus einer Reihe von Zahlen das arithmetische Mittel und die Standardabweichung.
| LGF_AverageAndDeviation (FC) | ||||||||
|---|---|---|---|---|---|---|---|---|
| Array[*] of LReal | variableArray | Ret_Val | Void | |||||
| arithmeticAverage | LReal | |||||||
| standardDeviation | LReal | |||||||
| Bezeichner | Datentyp | Beschreibung |
|---|---|---|
| variableArray | Array[*] of LReal | Zahlenreihe, mit der gerechnet werden soll |
| Bezeichner | Datentyp | Beschreibung |
|---|---|---|
| Ret_Val | Void | Void - Funktion hat keinen Rückgabewert |
| arithmeticAverage | LReal | Berechneter Arithmetischer Mittelwert |
| standardDeviation | LReal | Berechnete Standardabweichung |
Über den Eingang variableArray wird ein Array beliebiger Größe angeschlossen. Nach dem Auslesen der Array-Grenzen, wird aus den Werten der arithmetische Mittelwert und die Standardabweichung berechnet und beides ausgegeben.
| Version & Datum | Änderungsbeschreibung | |
|---|---|---|
| 01.00.00 | Siemens Industry Online Support | |
| 19.08.2015 | First released version | |
| 01.00.01 | Siemens Industry Online Support | |
| 16.11.2015 | Bug fix at WRONG_TYPE: #error := true | |
| 01.00.02 | Siemens Industry Online Support | |
| 02.01.2017 | Upgrade: TIA Portal V14 Update 1 | |
| 01.00.03 | Siemens Industry Online Support | |
| 17.08.2018 | Upgrade: TIA V15 Update 2 | |
| 01.00.04 | Siemens Industry Online Support | |
| 23.11.2018 | Upgrade: TIA V15.1 | |
| 02.00.00 | Simatic Systems Support | |
| 25.01.2019 | Data type changed from Variant to Array[*] of LReal | |
| 02.00.01 | Simatic Systems Support | |
| 31.10.2019 | Regions, comments and constants are added | |
| 03.00.00 | Simatic Systems Support | |
| 23.04.2020 | Set version to V3.0.0, harmonize the version of the whole library | |
| 03.00.01 | Simatic Systems Support | |
| 06.04.2021 | Insert documentation | |