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

◆ tsequenceset_append_tinstant()

TSequenceSet * tsequenceset_append_tinstant ( TSequenceSet ss,
const TInstant inst,
double  maxdist,
const Interval maxt,
bool  expand 
)

Append an instant to a temporal sequence set.

Parameters
[in,out]ssTemporal sequence set
[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 set passed as first argument has space for adding the instant, the function returns the sequence set. Otherwise, a NEW sequence set is returned and the input sequence set is freed.
Note
Always use the function to overwrite the existing sequence set as in:
ss = tsequenceset_append_tinstant(ss, inst, ...);
TSequenceSet * tsequenceset_append_tinstant(TSequenceSet *ss, const TInstant *inst, double maxdist, const Interval *maxt, bool expand)
Append an instant to a temporal sequence set.
Definition: temporal_modif.c:1997