PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
rt_histogram rt_band_get_histogram | ( | rt_bandstats | stats, |
uint32_t | bin_count, | ||
double * | bin_width, | ||
uint32_t | bin_width_count, | ||
int | right, | ||
double | min, | ||
double | max, | ||
uint32_t * | rtn_count | ||
) |
Count the distribution of data.
stats | : a populated stats struct for processing |
bin_count | : the number of bins to group the data by |
bin_width | : the width of each bin as an array |
bin_width_count | : number of values in bin_width |
right | : evaluate bins by (a,b] rather than default [a,b) |
min | : user-defined minimum value of the histogram a value less than the minimum value is not counted in any bins if min = max, min and max are not used |
max | : user-defined maximum value of the histogram a value greater than the max value is not counted in any bins if min = max, min and max are not used |
rtn_count | : set to the number of bins being returned |
Definition at line 412 of file rt_statistics.c.
References rt_bandstats_t::count, rt_histogram_t::count, genraster::count, FLT_EQ, rt_histogram_t::inc_max, rt_histogram_t::inc_min, rt_bandstats_t::max, rt_histogram_t::max, rt_bandstats_t::min, rt_histogram_t::min, rt_histogram_t::percent, RASTER_DEBUG, RASTER_DEBUGF, rtalloc(), rtdealloc(), rterror(), genraster::value, and rt_bandstats_t::values.
Referenced by RASTER_histogram(), RASTER_histogramCoverage(), and test_band_stats().