-
Notifications
You must be signed in to change notification settings - Fork 12
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
Multidimensional example #41
Comments
Email from the author, to the email address I had listed on my pubic resume repo. My response below.
I was considering "multidimensional" to refer to dimensions beyond the cartesian plane. This was a potential mistaken interpretation my part. To reiterate my point, presuming this is an indended use case, it might've been helpful if one of the eleven contributors over the past ten years could've written an example for this. Here's an example (likely incorrect) of the sort of thing that might help future users of the repo.
|
To clarify @alexandercommon - it sounds like when you say multidimensional here, you mean more than two dimensions: e.g., three dimensions as in the example you provided? If so, it is a minor modification of the two dimensional example given in the readme: import numpy as np
import fastkde
import matplotlib.pyplot as plt
#Generate three random variables dataset (representing 100,000 pairs of datapoints)
N = int(1e5)
x = 50*np.random.normal(size=N) + 0.1
y = 0.01*np.random.normal(size=N) - 300
z = np.random.normal(size = N)
#Do the self-consistent density estimate
PDF = fastkde.pdf(x, y, z, var_names = ['x', 'y','z']) Note that the above assumes that Note also that while the underlying technique that fastKDE uses can extend to higher dimensions--more variables--a practical limitation associated with memory (see #5) limits this to four or five variables. I'd welcome a contribution if you'd like to fork the repository, augment the documentation, and issue a pull request. |
I'm sure it would save a lot of us time if you provided even a rudimentary multidimensional example.
The text was updated successfully, but these errors were encountered: