35#ifndef __TEMPORAL_MATHFUNCS_H__
36#define __TEMPORAL_MATHFUNCS_H__
41#include "general/temporal.h"
TSequenceSet * tfloatseqset_derivative(const TSequenceSet *ts)
Return the derivative of a temporal sequence set number.
Definition: tnumber_mathfuncs.c:481
TSequence * tfloatseq_derivative(const TSequence *seq)
Return the derivative of a temporal sequence number.
Definition: tnumber_mathfuncs.c:441
meosType
Enumeration that defines the built-in and temporal types used in MobilityDB.
Definition: meos_catalog.h:53
Temporal * arithop_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.
Definition: tnumber_mathfuncs.c:226
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...
Definition: tnumber_mathfuncs.c:143
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 minim...
Definition: tnumber_mathfuncs.c:157
Temporal * arithop_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.
Definition: tnumber_mathfuncs.c:179
TArithmetic
Mathematical operators (+, -, *, /) and functions (round, degrees, ...) for temporal numbers.
Definition: tnumber_mathfuncs.h:48
@ SUB
Definition: tnumber_mathfuncs.h:50
@ MULT
Definition: tnumber_mathfuncs.h:51
@ DIV
Definition: tnumber_mathfuncs.h:52
@ DIST
Definition: tnumber_mathfuncs.h:53
@ ADD
Definition: tnumber_mathfuncs.h:49
int64 TimestampTz
Definition: pg_ext_defs.in.h:19
uintptr_t Datum
Definition: pg_ext_defs.in.h:4
Structure to represent temporal values of instant subtype.
Definition: meos.h:148
Structure to represent temporal values of sequence set subtype.
Definition: meos.h:186
Structure to represent temporal values of instant set or sequence subtype.
Definition: meos.h:165
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:136