9 double quant = *(
const double *)closure;
27 : values[i0] * (i1 - k) + values[i1] * (k - i0);
32 static const double q = 0.25;
38 static const double q = 0.75;
44 static const double q = 0.90;
50 double quant = *(
const double *)closure;
63 for (i = 0; i < n; i++)
64 total += values[i][1];
67 for (i = 0; i < n; i++) {
69 if (k >= total * quant)
73 *result = values[i][0];
78 static const double q = 0.25;
84 static const double q = 0.75;
90 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.