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

1-d KDE transform? #1469

Open
Fil opened this issue Apr 19, 2023 · 3 comments
Open

1-d KDE transform? #1469

Fil opened this issue Apr 19, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Fil
Copy link
Contributor

Fil commented Apr 19, 2023

(As mentioned in a few places: #948, #943, #791.)

We can look at https://github.com/uwdata/fast-kde/ for speed, and https://observablehq.com/@d3/kernel-density-estimation for a more straightforward implementation. Could be used to create violin plots, etc. Building on our 2-d implementation, the efficient approach might be to just bin (with linear binning for when a point doesn't fall exactly on a point) then blur.

An (old) experimental notebook: https://observablehq.com/@observablehq/fast-kde-and-plot/2

(2-d KDE is addressed by the density mark.)

Examples would include violin plots

(Need to add some padding.)

@Fil Fil self-assigned this Apr 19, 2023
@Fil Fil changed the title KDE transform? 1-d KDE transform? Apr 19, 2023
@mbostock mbostock added the enhancement New feature or request label Apr 19, 2023
@Hvass-Labs
Copy link

I would really like KDE as well. It would be great if it also worked with brushing / selection of data. Then I could show a histogram as solid bars and overlay it with the KDE as a thin curve, and the user could brush / select a part of the plot, and I could then get the selected histogram and KDE values so I can use them elsewhere. If that is possible? Thanks!

@martindaniel4
Copy link

Another upvote for KDE 👋

@alex-rand
Copy link

Yes please!

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

No branches or pull requests

5 participants