8 DCELL sum, ave, sumsq, sumcb, sdev;
15 for (i = 0; i < n; i++) {
33 for (i = 0; i < n; i++) {
44 sdev = sqrt(sumsq / count);
46 *result = sumcb / (count * sdev * sdev * sdev);
51 DCELL sum, ave, sumsq, sumcb, sdev;
58 for (i = 0; i < n; i++) {
62 sum += values[i][0] * values[i][1];
63 count += values[i][1];
76 for (i = 0; i < n; i++) {
82 d = values[i][0] - ave;
83 sumsq += d * d * values[i][1];
84 sumcb += d * d * d * values[i][1];
87 sdev = sqrt(sumsq / count);
89 *result = sumcb / (count * sdev * sdev * sdev);
void w_skew(DCELL *result, DCELL(*values)[2], int n, const void *closure)
#define Rast_is_d_null_value(dcellVal)
void c_skew(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.