Hermes
 All Data Structures Files Functions Variables Macros Pages
Similarity.sql File Reference

File containing the implementation of the Trajectory data type. More...

Functions

float8 euclideanstart (trajectory trajectorya, trajectory trajectoryb)
 The function returns the euclidean distance between the first points of the trajectories. More...
 
float8 euclideanend (trajectory trajectorya, trajectory trajectoryb)
 The function returns the euclidean distance between the last points of the trajectories. More...
 
float8 euclideanstartend (trajectory trajectorya, trajectory trajectoryb)
 The function returns the average euclidean distance between the first and last points of the trajectories. More...
 

Detailed Description

File containing the implementation of the Trajectory data type.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).
See also
Trajectory
Trajectory type
Distance functions

Function Documentation

float8 euclideanend ( trajectory  trajectorya,
trajectory  trajectoryb 
)

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

Parameters
[in]trajectoryAThe first trajectory
[in]trajectoryBThe second trajectory
Returns
distance between the last points of the trajectories
See also
Euclidean distance measure
float8 euclideanstart ( trajectory  trajectorya,
trajectory  trajectoryb 
)

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

Parameters
[in]trajectoryAThe first trajectory
[in]trajectoryBThe second trajectory
[out]resultThe result
Returns
the distance between the first points of the trajectories
See also
Euclidean distance measure
float8 euclideanstartend ( trajectory  trajectorya,
trajectory  trajectoryb 
)

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
Returns
the average euclidean distance between the first and last points of the trajectories
See also
Euclidean distance measure