MobilityDB 1.1

◆ tseqarr_normalize()

TSequence ** tseqarr_normalize ( const TSequence **  sequences,
int  count,
int *  newcount 
)

Normalize the array of temporal sequences.

The input sequences may be non-contiguous but must ordered and either (1) are non-overlapping, or (2) share the same last/first instant in the case we are merging temporal sequences.

Parameters
[in]sequencesArray of input sequences
[in]countNumber of elements in the input array
[out]newcountNumber of elements in the output array
Returns
Array of normalized temporal sequences values
Precondition
Each sequence in the input array is normalized
When merging sequences, the test whether the value is the same at the common instant should be ensured by the calling function.
Note
The function creates new sequences and does not free the original sequences