ZELLMECHANIK-DRESDEN / ShapeOut

Shape-Out has been superseded by Shape-Out 2.
https://shapeout.readthedocs.io
GNU General Public License v2.0
5 stars 5 forks source link

Nr. of bins in 2D Histogram #155

Closed maikherbig closed 7 years ago

maikherbig commented 7 years ago

The number of bins in a histogram is usually determined using one of the following rules: -Square-root choice -Sturges' formula -Rice Rule -Doane's formula -...others I found that especially Doane's formula gives nice results (I applied it on 25 different data-sets). Computation time is negligible (0.02s for 100.000 cells) Using this should solve this issue: Histogram coloring of points #147

paulmueller commented 7 years ago

Thanks for the input. The default kde/contour accuraracies are computed elsewhere:

https://github.com/ZELLMECHANIK-DRESDEN/ShapeOut/blob/master/shapeout/analysis.py#L132

Your pull request would override the values (xacc, yacc) set by the user. Please create a new pull request that uses Doane's formula (peferably in a separate function) to compute the default accuracies.