avg

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

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

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

The function uses simple trapezoidal integration.

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

Arguments

Number Type Compulsory Default Description

1

real array

Yes

vector

Returns

Return type: real array