13 for (i = 0; i < n; i++) {
30 for (i = 0; i < n; i++) {
40 *result = sumsq /
count;
45 DCELL sum, ave, sumsq;
52 for (i = 0; i < n; i++) {
56 sum += values[i][0] * values[i][1];
57 count += values[i][1];
69 for (i = 0; i < n; i++) {
75 d = values[i][0] - ave;
76 sumsq += d * d * values[i][1];
79 *result = sumsq /
count;
void w_var(DCELL *result, DCELL(*values)[2], int n, const void *closure)
#define Rast_is_d_null_value(dcellVal)
void c_var(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.