Statis...Zscore(3pm)

πŸ“¦ version 0.00002, in debian trixie, ubuntu resolute, ubuntu stonking

okay bestie, welcome to the manual page for Statis...Zscore(3pm) β€” it's giving statistics, it's giving Perl, it's giving z-scores. no cap. πŸ’…


✨ NAME ✨

  • Statistics::Zscore β€” Simple scoring module that uses statistics STANDARD SCORE.

🌈 SYNOPSIS 🌈

use Statistics::Zscore;

my $z = Statistics::Zscore->new;

# This module calculates statistics STANDARD SCORE that is called 'z-score'.
# It returns array reference of z-score.

my $zscore = $z->standardize( \@array );

# Furthermore, you can use combine method to get a score
# which is a linear combination value of some z-scores with arbitrary weight set.
# It returns hash reference.

my $result = $z->combine(
    {
        data => {
            yamada => [ 95, 33, 65, 84 ],
            suzuki => [ 75, 45, 80, 78 ],
            tanaka => [ 44, 72, 84, 65 ],
        },
        weight => [ 0.25, 0.25, 0.4, 0.1 ],
        data_num => 4
    }
);

🌸 DESCRIPTION 🌸

so like, Statistics::Zscore is a scoring module that uses statistics STANDARD SCORE. periodt. πŸ’–

in statistics, a standard score is a dimensionless quantity β€” you get it by subtracting the population mean from an individual raw score and then dividing that difference by the population standard deviation. this whole glow-up process is called standardizing or normalizing. ✨

and bestie, standard scores also go by: z-values, z-scores, normal scores, and standardized variables. iykyk.

--from wiki pedia ( http://en.wikipedia.org/wiki/Standard_score )

πŸ’… METHOD πŸ’…

πŸŽ€ new()

constructor. literally just makes a new object, slay.

πŸŽ€ standardize(\@array, {...opitons...})

Receives array reference, and returns z-score's array reference. the options are scale, plus and decimal. (defaults are scale => 1, plus => 0 and decimal => undef ) 🫢

it work inside.. like this:

score = (value - mean) / stddev * scale + plus
score = sprintf( decimal, score);

πŸŽ€ combine(\%hash)

Receives hash reference, and returns z-score's hash reference. %hash includes scale, plus and decimal options. (see above) πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

takeshi miki <miki@cpan.org>


πŸ“œ LICENSE πŸ“œ

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


πŸ‘€ SEE ALSO πŸ‘€

(no entries β€” that's the whole vibe)


this page is from perl v5.38.2, dated 2024-05-21, and it's the Statis...Zscore(3pm) manpage. bye bestie! πŸ’–

πŸ“¦ where this page comes from