Skip to content

allow matrix as input for bivariate kde #102

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

szcf-weiya
Copy link

@szcf-weiya szcf-weiya commented Jan 15, 2022

Since the estimate of bivariate kde allow matrix as input, e.g.,

x = randn(100, 2)
f = kde(x)

it would be more convenient when evaluating at each points of x by pdf(f, x) than

[pdf(f, x[i, 1], x[i,2]) for i = 1:size(x,1)]

BTW, at the first glance, I misunderstood the defined pdf(f, x, y), which evaluates at the grid formed by x and y instead of the pair of points. Sometimes, it would be also common to evaluate the pdf at some given points.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant