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

The implementation of Trajectory. More...

Include dependency graph for EuclideanStartEnd.c:

Functions

float8 * EuclideanStartEnd (const Trajectory *trajectoryA, const Trajectory *trajectoryB, float8 *result)
 The function returns the average euclidean distance between the first and last points of the trajectories. More...
 
PGDLLEXPORT Datum EuclideanStartEndV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (EuclideanStartEndV1)
 

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

Function Documentation

float8* EuclideanStartEnd ( const Trajectory trajectoryA,
const Trajectory trajectoryB,
float8 *  result 
)

The function returns the average euclidean distance between the first and last points of the trajectories.

Parameters
[in]trajectoryAThe first trajectory
[in]trajectoryBThe second trajectory
[out]resultThe result

References distancePointSP_PointSP(), Trajectory::NrPoints, Trajectory::points, and PointST::sp.

Referenced by EuclideanStartEndV1().

Here is the call graph for this function:

PGDLLEXPORT Datum EuclideanStartEndV1 ( PG_FUNCTION_ARGS  )

References EuclideanStartEnd().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( EuclideanStartEndV1  )