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

◆ tdiscseq_split_n_spans()

static Span * tdiscseq_split_n_spans ( const TSequence seq,
int  span_count,
int *  count 
)
static

Return an array of N spans from the instants of a temporal sequence with discrete interpolation.

Parameters
[in]seqTemporal sequence
[in]span_countNumber of spans
[out]countNumber of elements in the output array
Returns
If the number of instants in the sequence is <= span_count, the result contains one span per instant. Otherwise, consecutive instants are combined into a single span in the result to reach the number of spans.