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 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.