I have a simple 2D kernel density estimation created from x and y values, using scipy's gaussian_kde. It looks similar to the example in the gaussian_kde documentation. I have new x values (a very simple 1D array) that need y values based on that initial distribution, is it even possible to get this out of gaussian_kde? Should I be using something else? Any advice is appreciated.

I have tried feeding that new 1D array into the kernel created by gaussian_kde, but of course it's expecting 2D data and I get a ValueError.

0

There are 0 best solutions below