For the complete documentation index, see llms.txt. This page is also available as Markdown.

$mean

Computes the average of all values in an array.

Signature

{{$mean array [format]}}

Arguments

Name
Description
Type
Required

array

Array of numbers.

Number Array

format

Format string used to format the result

String

Returns

Returns the average value.

Example

{{$mean scores}}

Last updated

Was this helpful?