fn:avg

Returns the average of a set of numbers or durations.

avg($arg as xs:anyAtomicType*) ➔ xs:anyAtomicType?

Arguments

 

$arg

xs:anyAtomicType*

The input sequence of numbers or durations

Result

xs:anyAtomicType?

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.1 Functions and Operators