I would go for freedman then that should be fast and work more often that
10.


On 13 December 2013 13:28, pburdet <notifications@github.com> wrote:

> In hyperspy/signal.py:
>
> > @@ -3422,6 +3422,55 @@ def integrate_simpson(self, axis):
> >          s._remove_axis(axis.index_in_axes_manager)
> >          return s
> >
> > +    def get_histogram(img,bins=10,range_bins=None):
>
> I used the default value of numpy.histogram. They might have use these
> value as it is really fast and the result is very small. I do agree that
> this value almost never work for my cases. I need at least 100 bins. The
> only problem with using an automatic one is the time it can take on big
> data set. 'khune' and 'blocks' are too slow. We might use 'scotts' or
> 'freedman' as default.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/hyperspy/hyperspy/pull/124/files#r8331993>
> .
>