PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
rt_quantile rt_band_get_quantiles | ( | rt_bandstats | stats, |
double * | quantiles, | ||
int | quantiles_count, | ||
uint32_t * | rtn_count | ||
) |
Compute the default set of or requested quantiles for a set of data the quantile formula used is same as Excel and R default method.
stats | : a populated stats struct for processing |
quantiles | : the quantiles to be computed |
quantiles_count | : the number of quantiles to be computed |
rtn_count | : set to the number of quantiles being returned |
Definition at line 672 of file rt_statistics.c.
References rt_bandstats_t::count, rt_quantile_t::quantile, quicksort(), RASTER_DEBUG, RASTER_DEBUGF, rtalloc(), rtdealloc(), rterror(), rt_bandstats_t::sorted, rt_quantile_t::value, and rt_bandstats_t::values.
Referenced by RASTER_quantile(), and test_band_stats().