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

The implementation of Trajectory. More...

Include dependency graph for Euclidean.c:

Functions

float8 * Euclidean (const Trajectory *trajectoryA, const Trajectory *trajectoryB, int32 precision, float8 *result)
 The function returns the euclidean norm between the trajectories. More...
 
PGDLLEXPORT Datum EuclideanV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (EuclideanV1)
 

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* Euclidean ( const Trajectory trajectoryA,
const Trajectory trajectoryB,
int32  precision,
float8 *  result 
)

The function returns the euclidean norm between the trajectories.

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

References atInstantTrajectory(), Trajectory::NrPoints, Trajectory::points, PointST::sp, sqDistancePointSP_PointSP(), and PointST::t.

Referenced by EuclideanV1().

Here is the call graph for this function:

PGDLLEXPORT Datum EuclideanV1 ( PG_FUNCTION_ARGS  )

References Euclidean(), and validateInterpolationPrecision().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( EuclideanV1  )