App::St(3)
π App::St π
okay so bestie, welcome to App::St β which lives in the perl manual pages as App::St(3) btw, in case you were wondering where we're at. this is the whole Simple Statistics situation, and ngl it's lowkey iconic. π
β¨ NAME β¨
App::St β literally just Simple Statistics. that's the vibe. that's the whole thing. π
πΈ DESCRIPTION πΈ
okay so here's the tea: App::St gives you the core functionality of the st-console application. like, the whole engine underneath. the main character energy of the stats app. β¨
π¦ SYNOPSIS π¦
here's how you actually use it, bestie:
use App::St;
my $st = App::St->new();
while (<>) {
chomp;
next unless $st->validate($_);
$st->process($_);
}
print $st->mean();
print $st->stddev();
print $st->sterr();
slay. feed it numbers, it validates them, it processes them, and then you just... ask it for the stats you want. obsessed. π«Ά
π METHODS π
okay so here's the full roster, no skips, every single one:
new(%options)β makes you a shiny new object. takes%optionstoo. main character constructor behavior fr fr. β¨validate($num)β vibe checks$numand tells you if it's valid. use it before you let anything in. π§process($num)β feeds$numinto the mix so it counts toward your stats. πNβ the count. how many. the number of numbers, bestie. πsumβ adds it all up. the total. πmeanβ the average. you know this one. πstddevβ standard deviation, the classic. π₯stderrβ standard error. not the file descriptor, the statistics one, don't get it twisted. πpercentile=<0..100>β percentile, and the range is<0..100>exactly, keep it in those bounds bestie. πquartile=<0..4>β quartile, range<0..4>, so like q1 through q3 territory plus the edges. βminβ the smallest one. the little guy. π₯Ίq1β first quartile. πΈmedianβ the middle. the actual center of the situation. πq3β third quartile. π¦maxβ the biggest one. the icon. π
π AUTHOR π
Nelson Ferraz <nferraz@gmail.com> β the legend himself. π
π«Ά CONTRIBUTING π«Ά
got thoughts? suggestions? found a bug? bestie, send them here:
https://github.com/nferraz/st/issues
or if you're feeling crafty, fork the code on github:
π COPYRIGHT π
Copyright (c) 2013 Nelson Ferraz.
This program is free software; you can redistribute it and/or modify it under the MIT License (see LICENSE).
fr fr, that MIT License note is real β go read the LICENSE if you need the fine print. π
and that's the whole page, bestie!! this was App::St(3), shipped with perl v5.36.0, dated 2023-01-31 β so yeah, vintage but still serving. periodt. π
β¨ππ¦
π¦ where this page comes from
- debian bookworm: libapp-st-perl 1.1.4-7 Β· MIT
- ubuntu noble: libapp-st-perl 1.1.4-7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms