Statis...Welford(3pm)
π 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 π
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
- ubuntu noble: libstatistics-welford-perl 0.02-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libstatistics-welford-perl 0.02-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libstatistics-welford-perl 0.02-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms