avg Function

Calculates the average of the argument with respect to its reference as defined by:

\[ y = \int_{0}^{t}\frac{x}{t}dt \]

where ???MATH???x???MATH??? is the argument and ???MATH???t???MATH??? is the reference of ???MATH???x???MATH???. See Vector References for details.

The function uses simple trapezoidal integration.

An error will occur if the argument supplied has no reference.


Number Type Compulsory Default Description
1 real array Yes vector


Return type: real array