MobilityDB 1.3
Loading...
Searching...
No Matches

◆ tsequence_make_exp1()

TSequence * tsequence_make_exp1 ( const TInstant **  instants,
int  count,
int  maxcount,
bool  lower_inc,
bool  upper_inc,
interpType  interp,
bool  normalize,
void *  bbox 
)

Return a temporal sequence from an array of temporal instants.

For example, the memory structure of a temporal sequence with two instants is as follows:

---------------------------------------------------------
( TSequence )_X | ( bbox )_X | offset_0 | offset_1 | ...
---------------------------------------------------------
-------------------------------------
( TInstant_0 )_X | ( TInstant_1 )_X |
-------------------------------------
Structure to represent temporal values of sequence subtype.
Definition: meos.h:202

where the X are unused bytes added for double padding, offset_0 and offset_1 are offsets for the corresponding instants.

Precondition
maxcount is greater than or equal to count
Note
The validity of the arguments has been tested before