MobilityDB 1.1

◆ length_hist_bsearch()

int length_hist_bsearch ( Datum hist_length,
int  hist_length_nvalues,
double  value,
bool  equal 
)

Binary search on length histogram.

Return greatest index of period length in histogram which is less than (less than or equal) the given length value. If all lengths in the histogram are greater than (greater than or equal) the given length, returns -1.

Note
Function copied from file rangetypes_selfuncs.c snce it is not exported