FREQUENCIES: Use Freedman-Diaconis formula to choose histogram bin width.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 13 Mar 2010 19:43:13 +0000 (11:43 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 13 Mar 2010 19:43:13 +0000 (11:43 -0800)
commita857d9573897b2aa372824ff5323b14b84207142
treefd1642f4ade3697470ecb6016c2f2140f9f1550d
parent69b9f985eb77186153b7e1cb220fa1785dff582b
FREQUENCIES: Use Freedman-Diaconis formula to choose histogram bin width.

Recently the FREQUENCIES procedure adopted Sturges' formula, more or less
arbitrarily, to choose the bin width of histograms.  Gaj Vidmar
<gaj.vidmar@mf.uni-lj.si>, however, recommended the Freedman-Diaconis
formula instead, so this commit adopts that formula instead.

Tested with only a few examples.
src/language/stats/frequencies.q