MobilityDB  1.0

◆ tsequenceset_make()

TSequenceSet* tsequenceset_make ( const TSequence **  sequences,
int  count,
bool  normalize 
)

Construct a temporal sequence set value from the array of temporal sequence values.

For example, the memory structure of a temporal sequence set value with 2 sequences is as follows

--------------------------------------------------------
( TSequenceSet )_X | offset_0 | offset_1 | offset_2 | ...
--------------------------------------------------------
--------------------------------------------------------
( TSequence_0 )_X | ( TSequence_1 )_X | ( bbox )_X |
--------------------------------------------------------

where the _X are unused bytes added for double padding, offset_0 and offset_1 are offsets for the corresponding sequences and offset_2 is the offset for the bounding box. Temporal sequence set values do not have precomputed trajectory.

Parameters
[in]sequencesArray of sequences
[in]countNumber of elements in the array
[in]normalizeTrue when the resulting value should be normalized. In particular, normalize is false when synchronizing two temporal sequence set values before applying an operation to them.