Closed OmriTreidel closed 6 years ago
There seem to be a problem with kde_range in univariant.jl: The range that is returned sometimes has the wrong number of points.
kde_range
Can be easily detected by inserting length(lo:step:hi) == npoints || @show "ERROR", length(lo:step:hi) before returning.
length(lo:step:hi) == npoints || @show "ERROR", length(lo:step:hi)
I think it results from a problem is linspace.
linspace
Suggested fix:
return lo + (0:npoints-1)*step instead of lo:step:hi
lo + (0:npoints-1)*step
lo:step:hi
There seem to be a problem with
kde_range
in univariant.jl: The range that is returned sometimes has the wrong number of points.Can be easily detected by inserting
length(lo:step:hi) == npoints || @show "ERROR", length(lo:step:hi)
before returning.I think it results from a problem is
linspace
.Suggested fix:
return
lo + (0:npoints-1)*step
instead oflo:step:hi