Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions to compute histograms from the approximated CDF #8

Open
tvondra opened this issue Aug 9, 2020 · 0 comments · May be fixed by #5
Open

Functions to compute histograms from the approximated CDF #8

tvondra opened this issue Aug 9, 2020 · 0 comments · May be fixed by #5
Labels
enhancement New feature or request

Comments

@tvondra
Copy link
Owner

tvondra commented Aug 9, 2020

Another topic discussed with Matt Watson (@sporty81) on e-mail was generating histograms, which are essentially just another way to visualize the CDF approximated by the t-digest. I've hacked together two simple SQL functions in pull request #5 which calculate equi-width and equi-height histograms (there are probably more types, but I think those are the most common).

I think the functions are mostly fine, but I wonder how accurate the histograms can be. Probably good enough on the tails, but t-digests are intentionally constructed with lower accuracy in the middle part so the histograms have the same issue.

@tvondra tvondra added the enhancement New feature or request label Aug 9, 2020
@tvondra tvondra linked a pull request Aug 9, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant