Catman...median(3pm)

πŸ’– NAME πŸ’–

ok so bestie, this one's called Catmandu::Fix::stat_mean β€” but plot twist, it literally calculates the median of an array. yes. the name says mean, the job is median. we love a little mystery ✨


🌸 SYNOPSIS 🌸

here's the whole vibe, look:

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

so you feed it foo which is like [1,2,3,4], and it hands you back '2.5'. the middle-est number to ever middle. no cap πŸŽ€


πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Fix β€” go read it, it's the main character, we're just living in its universe πŸ’…

ok that's literally the whole page, it's short and it ate 🫢

this lil gem comes from perl v5.36.0, dated 2023-02-06, and the footer was giving Catman...median(3pm) energy β€” mwah πŸ’œ

πŸ“¦ where this page comes from