Statis...Welford(3pm)

πŸ“¦
version 0.02 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Statistics::Welford(3pm) β€” aka the Statistics::Welford page, the cute lil' Perl manual bestie πŸ’–

User Contributed Perl Documentation ✨ ok so let me tell you about this module, it's giving standard statistics using Welford's algorithm and honestly? iconic. πŸŽ€


🌸 NAME 🌸

Statistics::Welford β€” standard statistics using Welford's algorithm. no cap, that's the whole name. πŸ’…


✨ SYNOPSIS ✨

ok bestie, here's the vibe. you make an object, you feed it numbers forever, you ask it stuff:

  my $stat = Statistics::Welford->new;

  while (1) {
        $stat->add(rand);
        ...
  }

  print $stat->mean;

like. rand in a while (1) loop. she's eating and she's not stopping πŸ“ (the ... is literally in the original, it's the "and then obviously more stuff happens here" moment, iykyk)


πŸ¦‹ DESCRIPTION πŸ¦‹

Standard statistics using Welford's algorithm 🌈

that's it. that's the description. short queen behavior honestly πŸ’œ


πŸ‘‘ METHODS πŸ‘‘

new

  my $stat = Statistics::Welford->new;

The new constructor lets you create a fresh new Statistics::Welford object ✨ main character origin story fr fr. this is where it all begins πŸŽ€

add

Add an entry to the statistics base πŸ’–

you just keep feeding her numbers. she's hungry. she can handle it πŸ“

n

Returns the number of entries to the statistics base πŸ”’

how many numbers have you thrown at her? this tells you. lowkey useful.

min

Returns the minimum number in the statistics base πŸ“‰

the smallest lil' guy in the pile. precious.

max

Returns the maximum number in the statistics base πŸ“ˆ

the biggest baddest number in the pile. periodt.

mean

Returns the mean value ⭐

the average. the moment. the one you're probably here for.

variance

Returns the variance value 🌸

how spread out everything is. she's chaotic and she's telling you about it.

standard_deviation

Returns the standard deviation value πŸ¦‹

variance but in a sqrt fit. the classic. the legend.


πŸ’œ AUTHOR πŸ’œ

Kaare Rasmussen <kaare@cpan.org>. 🫢 the mastermind, the author, the moment. thank her.


Copyright (C) 2010, Kaare Rasmussen

This module is free software; you can redistribute it or modify it under the same terms as Perl itself. 🌈 (yes bestie, go off, remix it, it's free software, slay)


and that's the whole page!! πŸ’… perl v5.36.0, dated 2022-10-13, from your girl Statis...Welford(3pm) β€” ok bye ily, go compute some statistics πŸ¦‹βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from