2 #include <grass/stats.h>
4 void c_mode(DCELL * result, DCELL * values,
int n,
const void *closure)
17 for (i = 0; i <
n; i++) {
18 if (max == 0 || values[i] != prev) {
37 void w_mode(DCELL * result, DCELL(*values)[2],
int n,
const void *closure)
50 for (i = 0; i <
n; i++) {
51 if (max == 0.0 || values[i][0] != prev) {
56 count += values[i][1];
int sort_cell_w(DCELL(*array)[2], int n)
void w_mode(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void G_set_d_null_value(DCELL *dcellVals, int numVals)
int sort_cell(DCELL *array, int n)
void c_mode(DCELL *result, DCELL *values, int n, const void *closure)