MobilityDB 1.1

◆ calc_length_hist_frac()

double calc_length_hist_frac ( Datum hist_length,
int  hist_length_nvalues,
double  length1,
double  length2,
bool  equal 
)

Calculate the average of function P(x), in the interval [length1, length2], where P(x) is the fraction of tuples with length < x (or length <= x if 'equal' is true).

Note
Function derived from PostgreSQL file rangetypes_selfuncs.c.