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

◆ tsequence_append_tinstant()

Temporal * tsequence_append_tinstant ( TSequence seq,
const TInstant inst,
double  maxdist,
const Interval maxt,
bool  expand 
)

Append an instant to a temporal sequence accounting for potential gaps.

Parameters
[in,out]seqTemporal sequence
[in]instTemporal instant
[in]maxdistMaximum distance for defining a gap
[in]maxtMaximum time interval for defining a gap, may be NULL
[in]expandTrue when reserving space for additional instants @csqlfn Temporal_append_tinstant()
Returns
When the sequence passed as first argument has space for adding the instant, the function returns the updated sequence. Otherwise, a NEW sequence is returned and the input sequence is freed.
Note
Always use the function to overwrite the existing sequence as in:
seq = tsequence_append_tinstant(seq, inst, ...);
Temporal * tsequence_append_tinstant(TSequence *seq, const TInstant *inst, double maxdist, const Interval *maxt, bool expand)
Append an instant to a temporal sequence accounting for potential gaps.
Definition: temporal_modif.c:1727