MobilityDB 1.1
Functions

Distance functions for set and span types. More...

Collaboration diagram for Distance functions:

Functions

double distance_bigintset_bigint (const Set *s, int64 i)
 Return the distance between a set and a value. More...
 
double distance_bigintspan_bigint (const Span *s, int64 i)
 Return the distance between an integer span and an integer. More...
 
double distance_bigintspanset_bigint (const SpanSet *ss, int64 i)
 Return the distance between a timestamp and a span set. More...
 
double distance_floatset_float (const Set *s, double d)
 Return the distance between a set and a value. More...
 
double distance_floatspan_float (const Span *s, double d)
 Return the distance between a float span and a float. More...
 
double distance_floatspanset_float (const SpanSet *ss, double d)
 Return the distance between a timestamp and a span set. More...
 
double distance_intset_int (const Set *s, int i)
 Return the distance between a set and a value. More...
 
double distance_intspan_int (const Span *s, int i)
 Return the distance between an integer span and an integer. More...
 
double distance_intspanset_int (const SpanSet *ss, int i)
 Return the distance between a timestamp and a span set. More...
 
double distance_period_timestamp (const Span *p, TimestampTz t)
 Return the distance in seconds between a period and a timestamp. More...
 
double distance_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return the distance in seconds between a period set and a timestamp. More...
 
double distance_set_set (const Set *s1, const Set *s2)
 Return the distance between two sets. More...
 
double distance_span_span (const Span *s1, const Span *s2)
 Return the distance between two spans. More...
 
double distance_spanset_span (const SpanSet *ss, const Span *s)
 Return the distance between a span set and a span. More...
 
double distance_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the distance between two span sets. More...
 
double distance_textset_text (const Set *s, const text *txt)
 Return the distance between a set and a value. More...
 
double distance_timestampset_timestamp (const Set *ts, TimestampTz t)
 Return the distance in seconds between a timestamp set and a timestamp. More...
 

Detailed Description

Distance functions for set and span types.