Subject: | median() in Statistics::Descriptive Perl module |
Date: | Mon, 22 Dec 2008 16:57:57 +0900 |
To: | <bug-Statistics-Descriptive [...] rt.cpan.org> |
From: | "Peter Caffin" <P.Caffin [...] curtin.edu.au> |
Show quoted text
> I'm using your Statistics::Descriptive Perl module but running into
> problems trying to retrieve the median for my data.
>
> The code that's causing the error:
>
> # Output stats
> my $mean = $stat->mean();
> my $mdn = $stat->median();
> my $max = $stat->max();
>
> The error: Can't access `median' field in class
> Statistics::Descriptive::Sparse
>
> Commenting out the median line, no errors appear and I get appropriate
> stats for max and mean.
>
> Perl is v5.8.3 built for i586-linux-thread-multi.
> Statistics::Descriptive is current as refreshed from CPAN today
> (v2.6).
>