Hermes
|
The implementation of Trajectory. More...
#include "../../../h/SpatioTemporal/Trajectory/Similarity.h"
#include "../../../h/Spatial/PointSP/Distance.h"
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) | |
The implementation of Trajectory.
These functions are documented in the Trajectory/Similarity.h
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.
[in] | trajectoryA | The first trajectory |
[in] | trajectoryB | The second trajectory |
[out] | result | The result |
References distancePointSP_PointSP(), Trajectory::NrPoints, Trajectory::points, and PointST::sp.
Referenced by EuclideanStartEndV1().
PGDLLEXPORT Datum EuclideanStartEndV1 | ( | PG_FUNCTION_ARGS | ) |
PG_FUNCTION_INFO_V1 | ( | EuclideanStartEndV1 | ) |