Start » Filter Reference » Basic » Statistics » Average

Average


Module: FoundationLite

Computes the average of an array of real numbers. The array must be not empty.

Name Type Description
Input value
inValues RealArray
Output value
outAverage Real

Hints

  • If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Empty array on input in Average.

Complexity Level

This filter is available on Advanced Complexity Level.