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

The implementation of Trajectory. More...

Include dependency graph for ERP.c:

Functions

float8 * ERP (const Trajectory *trajectoryA, const Trajectory *trajectoryB, int32 lp, float8 *result)
 The function returns the ERP. More...
 
PGDLLEXPORT Datum ERPV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (ERPV1)
 

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

The function returns the ERP.

Parameters
[in]trajectoryAThe first trajectory
[in]trajectoryBThe second trajectory
[in]lpthe norm to be used (currently only 1 and 2)
[out]resultThe result

References distanceManhattanPointSP_PointSP(), distancePointSP_PointSP(), i(), j, Trajectory::NrPoints, Trajectory::points, PointST::sp, PointSP::x, and PointSP::y.

Referenced by ERPV1().

Here is the call graph for this function:

PGDLLEXPORT Datum ERPV1 ( PG_FUNCTION_ARGS  )

References ERP().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( ERPV1  )