13 for (i = 0; i < n; i++) {
31 for (i = 0; i < n; i++) {
39 sumqt += d * d * d * d;
44 *result = sumqt / (count * var *
var) - 3;
56 for (i = 0; i < n; i++) {
60 sum += values[i][0] * values[i][1];
61 count += values[i][1];
74 for (i = 0; i < n; i++) {
80 d = values[i][0] - ave;
81 sumsq += d * d * values[i][1];
82 sumqt += d * d * d * values[i][1];
87 *result = sumqt / (count * var *
var) - 3;
#define Rast_is_d_null_value(dcellVal)
void w_kurt(DCELL *result, DCELL(*values)[2], int n, const void *closure)
float var(IClass_statistics *statistics, int band1, int band2)
Helper function for computing variance.
void c_kurt(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.