Skip Menu |

This queue is for tickets about the Statistics-KernelEstimation CPAN distribution.

Report information
The Basics
Id: 50915
Status: new
Priority: 0/
Queue: Statistics-KernelEstimation

People
Owner: Nobody in particular
Requestors: ser [...] microsoft.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Small documentation issue
Date: Wed, 28 Oct 2009 13:34:18 +0000
To: "bug-Statistics-KernelEstimation [...] rt.cpan.org" <bug-Statistics-KernelEstimation [...] rt.cpan.org>
From: Stephen Robertson <ser [...] microsoft.com>
The Synopsis has the following: @histo = $s->histogram( 10 ); # 10 bins for( @histo ) { print $_->{pos}, "\t", $_->{cnt}, "\n"; } and a similar construction for the cumulative distribution function. The corresponding textual description says "this function returns a histogram of the data set as a ref to an array of hashes" This does not seem to work; what does work is: @histo = $s->histogram( 10 ); # 10 bins for( @{ $histo[0] } ) { print $_->{pos}, "\t", $_->{cnt}, "\n"; } In other words it seems to be a ref to an array of arrays of hashes, with the first index being a dummy ($histo[1] seems to be empty). Thanks, Stephen