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

Wrapping issue around pi boundary #19

Closed
dehann opened this issue Sep 19, 2019 · 2 comments · Fixed by JuliaRobotics/KernelDensityEstimate.jl#47
Closed

Wrapping issue around pi boundary #19

dehann opened this issue Sep 19, 2019 · 2 comments · Fixed by JuliaRobotics/KernelDensityEstimate.jl#47
Labels
bug Something isn't working
Milestone

Comments

@dehann
Copy link
Member

dehann commented Sep 19, 2019

Samples close to wrap boundary pull the distribution onto the boundary:

Screenshot from 2019-09-19 17-08-01
Screenshot from 2019-09-19 17-16-57
Screenshot from 2019-09-19 17-23-37

using ApproxManifoldProducts, KernelDensityEstimatePlotting, Gadfly

PTS = Vector{Array{Float64, 2}}()

for th in range(-pi, pi, length=30)
         abs(th) < pi/2 ? continue : nothing
         push!(PTS, 0.5.*randn(1,100) .+ th)
end

BEL = BallTreeDensity[]

for pts in PTS
       push!(BEL, manikde!(pts, (:Circular,)))
end

col = getColorsByLength(length(BEL))
plotKDECircular(BEL, c=col)
@dehann dehann added the bug Something isn't working label Sep 19, 2019
@dehann dehann added this to the v0.1.1 milestone Sep 19, 2019
@dehann
Copy link
Member Author

dehann commented Sep 19, 2019

Looks like it might be a know "feature", user must now set explicitly from KernelDensityEstimate:

setForceEvalDirect!(true)

@dehann
Copy link
Member Author

dehann commented Sep 19, 2019

Screenshot from 2019-09-19 18-45-42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant