3 void c_ave(DCELL * result, DCELL * values,
int n,
const void *closure)
12 for (i = 0; i <
n; i++) {
23 *result = sum /
count;
26 void w_ave(DCELL * result, DCELL(*values)[2],
int n,
const void *closure)
35 for (i = 0; i <
n; i++) {
39 sum += values[i][0] * values[i][1];
40 count += values[i][1];
46 *result = sum /
count;
void G_set_d_null_value(DCELL *dcellVals, int numVals)
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)
int G_is_d_null_value(const DCELL *dcellVal)
Returns 1 if dcell is NULL, 0 otherwise. This will test if the value dcell is a NaN. Same test as in G_is_f_null_value().