JuliaStats / KernelDensity.jl

Kernel density estimators for Julia
Other
175 stars 40 forks source link

use improved high numerical precision linspace from Base #52

Closed tlnagy closed 6 years ago

tlnagy commented 6 years ago

KernelDensity.jl rolled its own range generator which suffers from similar flaws as Base's linspace prior to being fixed in JuliaLang/julia#18777. This closes #39. @andreasnoack @simonbyrne. This needed for https://github.com/GiovineItalia/Gadfly.jl/pull/1157

Master

julia> length(KernelDensity.kde_range((0.12698109160784082, 0.9785547869337731), 256))
255

This PR

julia> length(KernelDensity.kde_range((0.12698109160784082, 0.9785547869337731), 256))
256
tlnagy commented 6 years ago

Tests are passing on 0.6 and the failures on the nightlies appears unrelated.