Hermes
 All Data Structures Files Functions Variables Macros Pages
EDR.c File Reference

The implementation of Trajectory. More...

Include dependency graph for EDR.c:

Macros

#define HIT   0
 
#define MISS   -1
 
#define GAP   -1
 

Functions

float8 * EDR (const Trajectory *trajectoryA, const Trajectory *trajectoryB, float8 eps, float8 *result)
 The function returns the EDR. More...
 
PGDLLEXPORT Datum EDRV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (EDRV1)
 

Detailed Description

The implementation of Trajectory.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).

These functions are documented in the Trajectory/Similarity.h

Macro Definition Documentation

#define GAP   -1

Referenced by EDR().

#define HIT   0

Referenced by EDR().

#define MISS   -1

Referenced by EDR().

Function Documentation

float8* EDR ( const Trajectory trajectoryA,
const Trajectory trajectoryB,
float8  eps,
float8 *  result 
)

The function returns the EDR.

Parameters
[in]trajectoryAThe first trajectory
[in]trajectoryBThe second trajectory
[in]epsthe threshold, which determines whether or not two elements match.
[out]resultThe result

References GAP, HIT, i(), j, MISS, Trajectory::NrPoints, Trajectory::points, PointST::sp, PointSP::x, and PointSP::y.

Referenced by EDRV1().

Here is the call graph for this function:

PGDLLEXPORT Datum EDRV1 ( PG_FUNCTION_ARGS  )

References EDR().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( EDRV1  )