MobilityDB 1.1

◆ tnumbersegm_restrict_span()

static int tnumbersegm_restrict_span ( const TInstant inst1,
const TInstant inst2,
bool  linear,
bool  lower_inclu,
bool  upper_inclu,
const Span span,
bool  atfunc,
TSequence **  result 
)
static

Restrict a segment of a temporal number to (the complement of) a span.

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