Skip Menu |

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

Report information
The Basics
Id: 82852
Status: new
Priority: 0/
Queue: Statistics-Descriptive

People
Owner: Nobody in particular
Requestors: SHLOMIF [...] cpan.org
Cc:
AdminCc:

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



Subject: Add ->summary() and ->print_summary() methods
On IRC, Su-Shee suggested that: [QUOTE] <Su-Shee> rindolf: specifically "the ease" of use and the assortment of information. e.g. R has a function called "summary" which you call on your data and it gives you min, max, median, mean, 1st and 3rd quantile as a report. (because that's the basic information you usally want) [/QUOTE] That sounds like something useful so I suggest adding the following functions: $self->summary({ %ARGS }); Returns a formatted summary. Some %ARGS are precision (number of places after the decimal dot), floating-point format, and more in the future. Returns a well-formatted summary. $self->print_summary($fh, {% ARGS }); Prints the summary to $fh with %ARGS like in summary, as well as eol => 0 to not append a newline. Regards, -- Shlomi Fish