tomkyle/binning – Determine optimal number of bins 𝒌 for #histogram #creation and optimal bin width 𝒉 using various statistical methods in #PHP.
Included methods: Sturges’ Rule, Doane’s Rule, Freedman-Diaconis Rule, Terrell-Scott’s Rule, Rice Rule, Scott’s Rule, and Square Root Rule.
GitHub: https://github.com/tomkyle/binning
Issues: https://github.com/tomkyle/binning/issues
Available on #packagist via #composer. Heavily inspired by markrogoyski/math-php but written for #PHP 8.3+. — #math #statistics