MobilityDB 1.1

◆ tsegment_value_at_timestamp()

Datum tsegment_value_at_timestamp ( const TInstant inst1,
const TInstant inst2,
bool  linear,
TimestampTz  t 
)

Return the base value of the segment of a temporal sequence at a timestamp.

Parameters
[in]inst1,inst2Temporal instants defining the segment
[in]linearTrue if the segment has linear interpolation
[in]tTimestamp
Precondition
The timestamp t satisfies inst1->t <= t <= inst2->t
Note
The function creates a new value that must be freed