13 for (i = 0; i < n; i++) {
24 *result = sum /
count;
36 for (i = 0; i < n; i++) {
40 sum += values[i][0] * values[i][1];
41 count += values[i][1];
47 *result = sum /
count;
#define Rast_is_d_null_value(dcellVal)
void w_ave(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void c_ave(DCELL *result, DCELL *values, int n, const void *closure)
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.