Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1153-standardlibrary-mathematics-stat-array-stat-mathaveragedeviation.md
T
2026-06-23 21:47:51 +08:00

29 lines
634 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MathAverageDeviation
Calculates the average absolute deviation of array elements. Analog of the [aad()](http://artax.karlin.mff.cuni.cz/r-help/library/lsr/html/aad.html) in R.
```
double  MathAverageDeviation(
   const double&  array[]                // array with data
   );
```
Parameters
array
[in]  Array with data for calculation.
start=0
[in]  Initial index for calculation.
count=WHOLE_ARRAY
[in]  The number of elements for calculation.
Return Value
The average absolute deviation of array elements. In case of error it returns [NaN](/en/docs/basis/types/double) (not a number).