MobilityDB  1.0

◆ calc_hist_selectivity_scalar()

static double calc_hist_selectivity_scalar ( TypeCacheEntry *  typcache,
RangeBound *  constbound,
RangeBound *  hist,
int  hist_nvalues,
bool  equal 
)
static

Look up the fraction of values less than (or equal, if 'equal' argument is true) a given const in a histogram of range bounds.

Note
Function copied from rangetypes_selfuncs.c since it is not exported.