MobilityDB 1.1
Enumerations | Functions
tnumber_mathfuncs.h File Reference
#include <postgres.h>
#include "general/temporal.h"
Include dependency graph for tnumber_mathfuncs.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, meosType basetype, TArithmetic oper, Datum(*func)(Datum, Datum, meosType, 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, meosType), bool(*tpfunc)(const TInstant *, const TInstant *, const TInstant *, const TInstant *, Datum *, TimestampTz *))
 Generic arithmetic operator on two temporal numbers. More...
 
TSequencetfloatseq_derivative (const TSequence *seq)
 Return the derivative of a temporal sequence number. More...
 
TSequenceSettfloatseqset_derivative (const TSequenceSet *ts)
 Return the derivative of a temporal sequence set number. More...
 
bool tnumber_div_tp_at_timestamp (const TInstant *start1, const TInstant *end1, const TInstant *start2, const TInstant *end2, Datum *value, TimestampTz *t)
 Find the single timestamptz at which the division of two temporal number segments is at a local minimum/maximum. More...
 
bool tnumber_mult_tp_at_timestamp (const TInstant *start1, const TInstant *end1, const TInstant *start2, const TInstant *end2, Datum *value, TimestampTz *t)
 Find the single timestamptz at which the multiplication of two temporal number segments is at a local minimum/maximum. More...