# Average

## Average(X, I)

Returns the mean value of all the elements of array «X», averaged over index «I». The full declaration of the function is

- Average(X: Numeric[I]; I: Index)

Note

The array «X» is evaluated in context. Thus, if you use Average to sum over the Run index, you may encounter a potential confusion, since `Average(A, I)`

will be summing the Mid-value across «I», not the sample. To sum over the Run index, use the Mean function, unless your intention really is to Sum the mid-value.

## See Also

Comments

Enable comment auto-refresher