I'm sure "jaggedness" isn't the right term to use here, so please correct me. I'm trying to quantify how jagged a distribution is. For example, this is moderately jagged:
This is really jagged:
Essentially, I want to quantify the number of peaks and the disparity between peaks and valleys in a meaningful way, normalized for size of data. So in the above example, distribution #2 has a larger amount of data than distribution #1, but I don't want that to affect the quantification. How would I do this?