Skip to content

Bin size and number of bins #18

Answered by marcoalopez
JoeMichael57 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, this is a different problem.

In the case of Saltykov's method, you can only set the number of bins/classes by design, not the bin size. If you have more than one population of grain sizes, the bin size will only match if the range of grain sizes is similar between the populations, which I assume will not be the case. One option is to set an ad hoc upper limit for all your distributions. You cannot do this directly, as the method is not designed to do so, but you can modify a line of code to do it. In particular, if you open the stereology.py file and go to lines 107-109 you will see this:

freq, bin_edges = np.histogram(
        diameters, bins=numbins, range=(minimo, diameters.max()), d…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JoeMichael57
Comment options

@marcoalopez
Comment options

Answer selected by marcoalopez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants