29 if (cat == 0 && !zero)
37 range2 = max2 - min2 + 1;
38 span = total / range2;
49 if (cat == 0 && !zero)
52 x = (sum + (
count / 2.0)) / span;
63 else if (newcat !=
x) {
64 func(prev, cat - 1, newcat);
70 func(prev, cat, newcat);
71 if (!zero && min1 <= 0 && max1 >= 0)
int Rast_cell_stats_histo_eq(struct Cell_stats *statf, CELL min1, CELL max1, CELL min2, CELL max2, int zero, void(*func)(CELL, CELL, CELL))
int Rast_rewind_cell_stats(struct Cell_stats *)
Reset/rewind cell stats.
int Rast_next_cell_stat(CELL *, long *, struct Cell_stats *)
Retrieve sorted cell stats.