RhoInc/safety-histogram

Add binning algorithm control.

samussiah opened this issue · 1 comments

Test notes

  • Verify a new control labeled Algorithm appears in the Bins group of controls with these options:
    • Square-root choice
    • Sturges formula
    • Rice Rule
    • Scotts normal reference rule
    • Freedman-Diaconis choice
    • Shimazaki and Shinomotos choice
    • Custom
  • Selecting any algorithm except Custom should effect these changes:
    • The algorithm returns the number of bins and the width of each bin.
    • The Quantity and Width inputs update accordingly.
    • The info icon updates with a link to an description of the algorithm.
  • Verify the number of bins in the Quantity input matches the number of bars in the chart.
  • Verify the width of each bin in the Width input matches the width of the bars in the chart.
  • Most importantly, rigorously validate each algorithm. And I mean take that algorithm to town. Make it do work.

specifically sturges' and scott's, in addition to the FD and minimization algorithms already in place