alternatively, some methods sort the numbers of pixels counted into a probability distribution having formula_17 bins, and use the bin sizes (masses, formula_18) and their corresponding probabilities (formula_19) to calculate formula_16 according to equations through :