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

only selecting first element during 1-product? #70

Open
dehann opened this issue Jan 19, 2021 · 0 comments
Open

only selecting first element during 1-product? #70

dehann opened this issue Jan 19, 2021 · 0 comments

Comments

@dehann
Copy link
Member

dehann commented Jan 19, 2021

MWE

pts = randn(5)
p_ = *([kde!(pts);], addEntropy=false)

pts_ = getPoints(p_)
# results in 5 values all equal to pts[1]
@assert pts_[2] != pts[2] "points in product of [p;] should be identical to original points"

Likely something to do with:

glb.particles[dim,j] = mean(glb.trees[j], glb.ind[j], dim)

and used here:

glb.calcmu[j] = glb.particles[dim,j] #[dim+glb.Ndim*(j-1)]

and closest to user:

@dehann dehann changed the title only selecting first element during product? only selecting first element during 1-product? Jan 19, 2021
@dehann dehann added this to the shortlist milestone Jan 19, 2021
dehann added a commit that referenced this issue Jan 19, 2021
dehann added a commit that referenced this issue Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant