fast-histogram icon indicating copy to clipboard operation
fast-histogram copied to clipboard

allow density/normed argument

Open bastibe opened this issue 8 years ago • 2 comments

Thank you for your cool package!

numpy.histogram and numpy.histogram2d support the normed argument, which divides counts by the number of samples and the bin width/area. It would be great if fast-histogram could support this as well.

bastibe avatar Jul 19 '17 09:07 bastibe

@bastibe - would you be interested in opening a pull request to add these options? I think that the default values that Numpy use mean that this won't add much overhead for the default use case.

astrofrog avatar Jul 19 '17 10:07 astrofrog

Sure, I can do that. It will take a few days, though.

bastibe avatar Jul 19 '17 12:07 bastibe