MobilityDB  1.0

◆ tpointseq_linear_find_splits()

static bool* tpointseq_linear_find_splits ( const TSequence seq,
int *  count 
)
static

Split a temporal point sequence with linear interpolation into an array of non self-intersecting pieces.

The function works only on 2D even if the input points are in 3D.

Parameters
[in]seqTemporal point
[out]countNumber of elements in the resulting array
Returns
Boolean array determining the instant numbers at which the sequence must be split.
Precondition
The input sequence has at least 3 instants