MobilityDB 1.1
Functions
tnumber_distance.c File Reference
#include "general/tnumber_distance.h"
#include <assert.h>
#include <float.h>
#include <math.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/lifting.h"
#include "general/temporaltypes.h"
#include "general/type_util.h"
Include dependency graph for tnumber_distance.c:

Functions

Temporaldistance_tfloat_float (const Temporal *temp, double d)
 Return the temporal distance between a temporal float and a float. More...
 
Temporaldistance_tint_int (const Temporal *temp, int i)
 Return the temporal distance between a temporal integer and an integer. More...
 
Temporaldistance_tnumber_number (const Temporal *temp, Datum value, meosType valuetype, meosType restype)
 Return the temporal distance between a temporal number and a number. More...
 
Temporaldistance_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return the temporal distance between two temporal numbers. More...
 
Temporaldistance_tnumber_tnumber1 (const Temporal *temp1, const Temporal *temp2, meosType restype)
 Return the temporal distance between two temporal numbers. More...
 
double nad_tbox_tbox (const TBox *box1, const TBox *box2)
 Return the nearest approach distance between the temporal boxes. More...
 
double nad_tfloat_float (const Temporal *temp, double d)
 Return the nearest approach distance between a temporal number and a number. More...
 
double nad_tfloat_tfloat (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal floats. More...
 
int nad_tint_int (const Temporal *temp, int i)
 Return the nearest approach distance between a temporal number and a number. More...
 
int nad_tint_tint (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal integers. More...
 
double nad_tnumber_number (const Temporal *temp, Datum value, meosType basetype)
 Return the nearest approach distance between a temporal number and a number. More...
 
double nad_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return the nearest approach distance between a temporal number and a temporal box. More...
 
Datum nad_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal numbers. More...
 
Datum number_distance (Datum l, Datum r, meosType typel, meosType typer)
 Distance functions for temporal numbers. More...
 
static bool tnumber_min_dist_at_timestamp (const TInstant *start1, const TInstant *end1, const TInstant *start2, const TInstant *end2, Datum *value, TimestampTz *t)
 Return true if two segments of the temporal numbers intersect at a timestamp. More...