MobilityDB  1.0

◆ periodset_make()

PeriodSet* periodset_make ( const Period **  periods,
int  count,
bool  normalize 
)

Construct a period set from an array of periods.

For example, the memory structure of a PeriodSet with 3 periods is as follows

---------------------------------------------------------------------------------
( PeriodSet | ( bbox )_X | ( Period_0 )_X | ( Period_1 )_X | ( Period_2 )_X )_X |
---------------------------------------------------------------------------------

where the X are unused bytes added for double padding, and bbox is the bounding box which is also period.

Parameters
[in]periodsArray of periods
[in]countNumber of elements in the array
[in]normalizeTrue when the resulting value should be normalized