MobilityDB 1.1
Functions
temporal_similarity.c File Reference
#include "general/temporal_similarity.h"
#include <assert.h>
#include <math.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/temporaltypes.h"
#include "point/tpoint_spatialfuncs.h"
Include dependency graph for temporal_similarity.c:

Functions

double temporal_dyntimewarp_distance (const Temporal *temp1, const Temporal *temp2)
 Compute the Dynamic Time Warp distance between two temporal values. More...
 
Matchtemporal_dyntimewarp_path (const Temporal *temp1, const Temporal *temp2, int *count)
 Compute the Dynamic Time Warp distance between two temporal values. More...
 
double temporal_frechet_distance (const Temporal *temp1, const Temporal *temp2)
 Compute the Frechet distance between two temporal values. More...
 
Matchtemporal_frechet_path (const Temporal *temp1, const Temporal *temp2, int *count)
 Compute the Frechet distance between two temporal values. More...
 
double temporal_similarity (const Temporal *temp1, const Temporal *temp2, SimFunc simfunc)
 Compute the similarity distance between two temporal values. More...
 
Matchtemporal_similarity_path (const Temporal *temp1, const Temporal *temp2, int *count, SimFunc simfunc)
 Compute the similarity path between two temporal values. More...
 
static double tinstant_distance (const TInstant *inst1, const TInstant *inst2)
 Compute the distance between two temporal instants. More...
 
double tinstarr_similarity (const TInstant **instants1, int count1, const TInstant **instants2, int count2, SimFunc simfunc)
 Linear space computation of the similarity distance between two temporal values. More...
 
static double tinstarr_similarity1 (double *dist, const TInstant **instants1, int count1, const TInstant **instants2, int count2, SimFunc simfunc)
 Linear space computation of the similarity distance between two temporal values. More...
 
Matchtinstarr_similarity_matrix (const TInstant **instants1, int count1, const TInstant **instants2, int count2, SimFunc simfunc, int *count)
 Compute the similarity distance between two temporal values. More...
 
static void tinstarr_similarity_matrix1 (const TInstant **instants1, int count1, const TInstant **instants2, int count2, SimFunc simfunc, double *dist)
 Compute the similarity distance between two temporal values using a full matrix. More...
 
static Matchtinstarr_similarity_path (double *dist, int count1, int count2, int *count)
 Compute the similarity path between two temporal values based on the distance matrix. More...
 
static double tnumberinst_distance (const TInstant *inst1, const TInstant *inst2)
 Similarity distance for temporal values. More...
 
static double tpointinst_distance (const TInstant *inst1, const TInstant *inst2)
 Compute the distance between two temporal instants. More...