35#ifndef __TEMPORAL_MATHFUNCS_H__
36#define __TEMPORAL_MATHFUNCS_H__
42#include "temporal/temporal.h"
43#include "temporal/meos_catalog.h"
TSequenceSet * tfloatseqset_derivative(const TSequenceSet *ss)
Return the derivative of a temporal float sequence set.
Definition: tnumber_mathfuncs.c:636
TSequence * tfloatseq_derivative(const TSequence *seq)
Return the derivative of a temporal float sequence.
Definition: tnumber_mathfuncs.c:593
meosType
Enumeration that defines the built-in and temporal types used in MobilityDB.
Definition: meos_catalog.h:55
int(* tpfunc_temp)(Datum, Datum, Datum, Datum, Datum, TimestampTz, TimestampTz, TimestampTz *, TimestampTz *)
Definition: temporal.h:290
#define UNUSED
Definition: temporal.h:75
External API of the Mobility Engine Open Source (MEOS) library.
int64 TimestampTz
Definition: postgres_ext_defs.in.h:22
uintptr_t Datum
Definition: postgres_ext_defs.in.h:7
Structure to represent temporal values of sequence set subtype.
Definition: meos.h:224
Structure to represent temporal values of sequence subtype.
Definition: meos.h:202
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:173
Temporal * arithop_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.
Definition: tnumber_mathfuncs.c:162
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 minim...
Definition: tnumber_mathfuncs.c:67
Temporal * arithop_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.
Definition: tnumber_mathfuncs.c:113
TArithmetic
Mathematical operators (+, -, *, /) and functions (round, degrees, ...) for temporal numbers.
Definition: tnumber_mathfuncs.h:50
@ SUB
Definition: tnumber_mathfuncs.h:52
@ MULT
Definition: tnumber_mathfuncs.h:53
@ DIV
Definition: tnumber_mathfuncs.h:54
@ DIST
Definition: tnumber_mathfuncs.h:55
@ ADD
Definition: tnumber_mathfuncs.h:51