I’m dealing with a Perl script. Perl is quite new to me.
Does anybody have an idea what this code does?
$pval = sprintf("%0.1e", Statistics::Distributions::uprob($z));
Where :
my $z= ($all{key} - $mu) / ${sigma};
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
$pvalis assigned a formatted string in the shape of a floating-point number in scientific notation. Presumably the functionuprobfrom the Statistics module returns such a number.$zis passed as argument to that function, and it seems to be a number calculated from a value in the hash%allwith the keykey, minus$mu, divided by$sigma. Pretty straightforward.