MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
tnumber_distance.c File Reference

Distance functions for temporal numbers. More...

#include <assert.h>
#include <float.h>
#include <math.h>
#include <limits.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/lifting.h"
#include "temporal/span.h"
#include "temporal/tbox.h"
#include "temporal/tinstant.h"
#include "temporal/tsequence.h"
#include "temporal/type_util.h"
#include "geo/tgeo_spatialfuncs.h"

Functions

Temporaldistance_tnumber_number (const Temporal *temp, Datum value)
 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...
 
double nad_tbox_tbox (const TBox *box1, const TBox *box2)
 Return the nearest approach distance between the temporal boxes. More...
 
double nad_tnumber_number (const Temporal *temp, Datum value)
 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...
 
double nad_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal numbers. More...
 
int tfloat_base_distance_turnpt (Datum start, Datum end, Datum value, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return true if the segment of a temporal floats intersects a value at a timestamptz. More...
 
int tfloat_distance_turnpt (Datum start1, Datum end1, Datum start2, Datum end2, Datum param, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return true if the segments of two temporal floats intersect at a timestamptz. More...
 
int tint_base_distance_turnpt (Datum start, Datum end, Datum value, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return true if the segment of a temporal integer intersects a value at a timestamptz. More...
 
int tint_distance_turnpt (Datum start1, Datum end1, Datum start2, Datum end2, Datum param, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return true if the segments of two temporal integers intersect at a timestamptz. More...
 
int tnumber_distance_turnpt (Datum start1, Datum end1, Datum start2, Datum end2, Datum param UNUSED, meosType basetype, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return true if the segments of twp temporal number intersects at a timestamptz. More...
 
double tnumberinst_distance (const TInstant *inst1, const TInstant *inst2)
 Return the distance between two temporal instants. More...
 

Detailed Description

Distance functions for temporal numbers.