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

The implementation of Trajectory. More...

Include dependency graph for Manhattan.c:

Functions

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

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

The function returns the Manhattan norm between the trajectories.

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

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

Referenced by ManhattanV1().

Here is the call graph for this function:

PGDLLEXPORT Datum ManhattanV1 ( PG_FUNCTION_ARGS  )

References Manhattan(), and validateInterpolationPrecision().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( ManhattanV1  )