KernelDensityEstimate.jl icon indicating copy to clipboard operation
KernelDensityEstimate.jl copied to clipboard

only selecting first element during 1-product?

Open dehann opened this issue 5 years ago • 0 comments

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: https://github.com/JuliaRobotics/KernelDensityEstimate.jl/blob/caab2b12a108ee1a41af9608bd602baa429e1ada/src/MSGibbs01.jl#L90

and used here: https://github.com/JuliaRobotics/KernelDensityEstimate.jl/blob/caab2b12a108ee1a41af9608bd602baa429e1ada/src/MSGibbs01.jl#L190

and closest to user: https://github.com/JuliaRobotics/KernelDensityEstimate.jl/blob/caab2b12a108ee1a41af9608bd602baa429e1ada/src/MSGibbs01.jl#L422

dehann avatar Jan 19 '21 18:01 dehann