2 #include <grass/stats.h>
4 void c_median(DCELL * result, DCELL * values,
int n,
const void *closure)
11 *result = (values[(n - 1) / 2] + values[n / 2]) / 2;
14 void w_median(DCELL * result, DCELL(*values)[2],
int n,
const void *closure)
28 for (i = 0; i <
n; i++)
29 total += values[i][1];
32 for (i = 0; i <
n; i++) {
38 *result = values[i][0];
int sort_cell_w(DCELL(*array)[2], int n)
void G_set_d_null_value(DCELL *dcellVals, int numVals)
int sort_cell(DCELL *array, int n)