34#ifndef __TNUMBER_DISTANCE_H__
35#define __TNUMBER_DISTANCE_H__
38#include "general/meos_catalog.h"
39#include "general/temporal.h"
double nad_tnumber_number(const Temporal *temp, Datum value, meosType basetype)
Return the nearest approach distance between a temporal number and a number.
Definition: tnumber_distance.c:208
Temporal * distance_tnumber_number(const Temporal *temp, Datum value, meosType valuetype, meosType restype)
Distance functions for temporal numbers.
Definition: tnumber_distance.c:86
double nad_tnumber_tbox(const Temporal *temp, const TBox *box)
Return the nearest approach distance between a temporal number and a temporal box.
Definition: tnumber_distance.c:280
double nad_tbox_tbox(const TBox *box1, const TBox *box2)
Return the nearest approach distance between the temporal boxes.
Definition: tnumber_distance.c:250
meosType
Enumeration that defines the built-in and temporal types used in MobilityDB.
Definition: meos_catalog.h:53
uintptr_t Datum
Definition: pg_ext_defs.in.h:4
Structure to represent temporal boxes.
Definition: meos.h:97
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:136
Temporal * distance_tnumber_tnumber1(const Temporal *temp1, const Temporal *temp2, meosType restype)
Return the temporal distance between two temporal numbers.
Definition: tnumber_distance.c:160
Datum number_distance(Datum l, Datum r, meosType typel, meosType typer)
Distance functions for temporal numbers.
Definition: tnumber_distance.c:55