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);
50 const void *closure
UNUSED)
52 DCELL sum, ave, sumsq, sumcb, sdev;
59 for (i = 0; i < n; i++) {
63 sum += values[i][0] * values[i][1];
64 count += values[i][1];
77 for (i = 0; i < n; i++) {
83 d = values[i][0] - ave;
84 sumsq += d * d * values[i][1];
85 sumcb += d * d * d * values[i][1];
88 sdev = sqrt(sumsq /
count);
90 *result = sumcb / (
count * sdev * sdev * sdev);
void c_skew(DCELL *result, DCELL *values, int n, const void *closure UNUSED)
void w_skew(DCELL *result, DCELL(*values)[2], 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.