MobilityDB  1.0

◆ tnumberseq_restrict_range1()

static int tnumberseq_restrict_range1 ( TSequence **  result,
const TInstant inst1,
const TInstant inst2,
bool  linear,
bool  lower_inclu,
bool  upper_inclu,
const RangeType *  range,
bool  atfunc 
)
static

Restricts the segment of a temporal number to the (complement of the) range of base values.

Parameters
[out]resultArray on which the pointers of the newly constructed sequence is stored
[in]inst1,inst2Temporal values defining the segment
[in]lower_inclu,upper_incluUpper and lower bounds of the segment
[in]linearTrue when the segment has linear interpolation
[in]rangeRange of base values
[in]atfuncTrue when the restriction is at, false for minus
Returns
Resulting temporal sequence value