9 double quant = *(
const double *)closure;
26 (i0 == i1) ? values[i0] : values[i0] * (i1 - k) + values[i1] * (k - i0);
31 static const double q = 0.25;
38 static const double q = 0.75;
45 static const double q = 0.90;
52 double quant = *(
const double *)closure;
65 for (i = 0; i < n; i++)
66 total += values[i][1];
69 for (i = 0; i < n; i++) {
71 if (k >= total * quant)
75 *result = values[i][0];
79 const void *closure
UNUSED)
81 static const double q = 0.25;
87 const void *closure
UNUSED)
89 static const double q = 0.75;
95 const void *closure
UNUSED)
97 static const double q = 0.90;
void w_quant(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void w_perc90(DCELL *result, DCELL(*values)[2], int n, const void *closure UNUSED)
void c_quart3(DCELL *result, DCELL *values, int n, const void *closure UNUSED)
void w_quart1(DCELL *result, DCELL(*values)[2], int n, const void *closure UNUSED)
void c_quart1(DCELL *result, DCELL *values, int n, const void *closure UNUSED)
void w_quart3(DCELL *result, DCELL(*values)[2], int n, const void *closure UNUSED)
void c_quant(DCELL *result, DCELL *values, int n, const void *closure)
void c_perc90(DCELL *result, DCELL *values, int n, const void *closure UNUSED)
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.
int sort_cell(DCELL *, int)
int sort_cell_w(DCELL(*)[2], int)
#define UNUSED
A macro for an attribute, if attached to a variable, indicating that the variable is not used.