MobilityDB 1.1

◆ tsegment_restrict_value()

static int tsegment_restrict_value ( const TInstant inst1,
const TInstant inst2,
interpType  interp,
bool  lower_inc,
bool  upper_inc,
Datum  value,
bool  atfunc,
TSequence **  result 
)
static

Restrict a segment of a temporal sequence to (the complement of) a base value.

Parameters
[in]inst1,inst2Temporal instants defining the segment
[in]interpInterpolation
[in]lower_inc,upper_incUpper and lower bounds of the segment
[in]valueBase value
[in]atfuncTrue if the restriction is at, false for minus
[out]resultArray on which the pointers of the newly constructed sequence is stored
Returns
Number of resulting sequences returned