Scroll to navigation

Catmandu::Fix::stat_median(3pm) User Contributed Perl Documentation Catmandu::Fix::stat_median(3pm)

NAME

Catmandu::Fix::stat_mean - calculate the median of an array

SYNOPSIS

   # Calculate the median of foo. E.g. foo => [1,2,3,4]
   stat_median(foo)  # foo => '2.5'

SEE ALSO

Catmandu::Fix

2023-02-06 perl v5.36.0