I have a histogram with 20 bins ranging from -1 to 1 with an interval of 0.1. I would like to know if the histogram distribution is uniform or is peaked.
I want to compare several such histograms and take the one which has more "uniform" distribution and less peaks.
Any suggestions on how to proceed ?
The answer depends on what you are trying to do:
These questions may seem the same, but they are not. Inference is very sensitive to the sample size, whereas descriptive measure take the data at face value.
If you are going for (1), then the suggestions in the comments or link will work fine. However, if you are trying to find the most uniform histogram, then this is not an inference problem, but a measurement problem...how do you measure non-uniformity?
At the risk of appearing shamelessly self-promoting, I recently answered a similar question by describing a method I developed to rand distributions by their degree of uniformity. Take a look and see if you think it is relevant to your problem.