MobilityDB 1.3
Loading...
Searching...
No Matches
Enumerations | Functions
tnumber_mathfuncs.h File Reference
#include <postgres.h>
#include <meos.h>
#include "temporal/temporal.h"
#include "temporal/meos_catalog.h"

Go to the source code of this file.

Enumerations

enum  TArithmetic {
  ADD , SUB , MULT , DIV ,
  DIST
}
 Mathematical operators (+, -, *, /) and functions (round, degrees, ...) for temporal numbers. More...
 

Functions

Temporalarithop_tnumber_number (const Temporal *temp, Datum value, TArithmetic oper, Datum(*func)(Datum, Datum, meosType), bool invert)
 Generic arithmetic operator on a temporal number and a number. More...
 
Temporalarithop_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2, TArithmetic oper, Datum(*func)(Datum, Datum, meosType), tpfunc_temp tpfunc)
 Generic arithmetic operator on two temporal numbers. More...
 
int tfloat_arithop_turnpt (Datum start1, Datum end1, Datum start2, Datum end2, Datum param UNUSED, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Find the single timestamptz at which the operation of two temporal float segments is at a local minimum/maximum. More...
 
TSequencetfloatseq_derivative (const TSequence *seq)
 Return the derivative of a temporal float sequence. More...
 
TSequenceSettfloatseqset_derivative (const TSequenceSet *ss)
 Return the derivative of a temporal float sequence set. More...