3 void c_var(DCELL * result, DCELL * values,
int n,
const void *closure)
12 for (i = 0; i <
n; i++) {
29 for (i = 0; i <
n; i++) {
39 *result = sumsq /
count;
42 void w_var(DCELL * result, DCELL(*values)[2],
int n,
const void *closure)
44 DCELL sum, ave, sumsq;
51 for (i = 0; i <
n; i++) {
55 sum += values[i][0] * values[i][1];
56 count += values[i][1];
68 for (i = 0; i <
n; i++) {
74 d = values[i][0] - ave;
75 sumsq += d * d * values[i][1];
78 *result = sumsq /
count;
void w_var(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void G_set_d_null_value(DCELL *dcellVals, int numVals)
void c_var(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().