PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ range_quintile()

static int range_quintile ( int *  vals,
int  nvals 
)
static

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

Definition at line 305 of file gserialized_estimate.c.

References cmp_int().

Referenced by nd_box_array_distribution().

306 {
307  qsort(vals, nvals, sizeof(int), cmp_int);
308  return vals[4*nvals/5] - vals[nvals/5];
309 }
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: