FREQUENCIES: Choose number of bins for histogram based on valid cases.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 10 Mar 2010 04:52:48 +0000 (20:52 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 10 Mar 2010 04:53:21 +0000 (20:53 -0800)
commitc919bc2cf709771292738b0a64a07bd04b3417ae
treeec7e63d0844d2162a98eef60795bd37e830135da
parentc141780c99e0aee7a50734d4a56e2adf6f16c909
FREQUENCIES: Choose number of bins for histogram based on valid cases.

Until now, histograms have always had exactly 11 bins.  There is no
"correct" number of bins, but a fixed number of bins also seems less than
ideal.  Use Sturges' formula, instead, to choose the number of bins.

Reported by Erik Frebold <efrebold@interchange.ubc.ca>.
src/language/stats/frequencies.q