MobilityDB  1.0

◆ tpointseq_dp_findsplit()

static void tpointseq_dp_findsplit ( const TSequence seq,
int  i1,
int  i2,
bool  withspeed,
int *  split,
double *  dist,
double *  delta_speed 
)
static

Finds a split when simplifying the temporal sequence point using a spatio-temporal extension of the Douglas-Peucker line simplification algorithm.

Parameters
[in]seqTemporal sequence
[in]i1,i2Indexes of the reference instants
[in]withspeedTrue when the delta in the speed must be considered
[out]splitLocation of the split
[out]distDistance at the split
[out]delta_speedDelta speed at the split