Skip to content

variance

variance(array) → number · Math

Compute the variance of a numeric array.

  • array (required): array of numbers
bash
echo '{"scores": [72, 85, 90, 95, 88, 76, 92]}' | utlx -e 'variance($input.scores)'
# ~72.2

Released under AGPL-3.0.