9 double quant = *(
const double *)closure;
26 : values[i0] * (i1 - k) + values[i1] * (k - i0);
31 static const double q = 0.25;
37 static const double q = 0.75;
43 static const double q = 0.90;
49 double quant = *(
const double *)closure;
62 for (i = 0; i < n; i++)
63 total += values[i][1];
66 for (i = 0; i < n; i++) {
68 if (k >= total * quant)
72 *result = values[i][0];
77 static const double q = 0.25;
83 static const double q = 0.75;
89 static const double q = 0.90;
int sort_cell(DCELL *, int)
void c_quart1(DCELL *result, DCELL *values, int n, const void *closure)
void c_quart3(DCELL *result, DCELL *values, int n, const void *closure)
void w_quant(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void c_perc90(DCELL *result, DCELL *values, int n, const void *closure)
void c_quant(DCELL *result, DCELL *values, int n, const void *closure)
int sort_cell_w(DCELL(*)[2], int)
void w_perc90(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void w_quart3(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void w_quart1(DCELL *result, DCELL(*values)[2], int n, const void *closure)
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.