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;
void w_ave(DCELL *result, DCELL(*values)[2], int n, const void *closure UNUSED)
void c_ave(DCELL *result, DCELL *values, int n, const void *closure UNUSED)
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.
#define Rast_is_d_null_value(dcellVal)
#define UNUSED
A macro for an attribute, if attached to a variable, indicating that the variable is not used.