Merge pull request #4076 from JuliaPlots/mkb/fix_wand

fix the wand binning
This commit is contained in:
Michael Krabbe Borregaard 2022-01-30 08:24:58 +01:00 committed by GitHub
commit 2a7d2d710e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -795,7 +795,7 @@ function _auto_binning_nbins(
elseif mode == :fd # FreedmanDiaconis rule
_cl(_span(v) / (2 * _iqr(v) / nd))
elseif mode == :wand
_cl(wand_edges(v)) # this makes this function not type stable, but the type instability does not propagate
wand_edges(v) # this makes this function not type stable, but the type instability does not propagate
else
error("Unknown auto-binning mode $mode")
end