Skip to content

allow matrix as input for bivariate kde#102

Open
szcf-weiya wants to merge 2 commits intoJuliaStats:masterfrom
szcf-weiya:patch-1
Open

allow matrix as input for bivariate kde#102
szcf-weiya wants to merge 2 commits intoJuliaStats:masterfrom
szcf-weiya:patch-1

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant