PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ range_quintile()

static int range_quintile ( int *  vals,
int  nvals 

The difference between the fourth and first quintile values, the "inter-quintile range".

Definition at line 342 of file gserialized_estimate.c.

References cmp_int().

Referenced by nd_box_array_distribution().

343 {
344  qsort(vals, nvals, sizeof(int), cmp_int);
345  return vals[4*nvals/5] - vals[nvals/5];
346 }
static int cmp_int(const void *a, const void *b)
Integer comparison function for qsort.
Here is the call graph for this function:
Here is the caller graph for this function: