Hermes
|
The implementation of Trajectory. More...
#include "../../../h/SpatioTemporal/Trajectory/Similarity.h"
#include "../../../h/SpatioTemporal/Trajectory/Interpolation.h"
#include "../../../h/SpatioTemporal/Trajectory/SessionParameters.h"
#include "../../../h/Spatial/PointSP/Distance.h"
#include <math.h>
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) | |
The implementation of Trajectory.
These functions are documented in the Trajectory/Similarity.h
float8* Euclidean | ( | const Trajectory * | trajectoryA, |
const Trajectory * | trajectoryB, | ||
int32 | precision, | ||
float8 * | result | ||
) |
The function returns the euclidean norm between the trajectories.
[in] | trajectoryA | The first trajectory |
[in] | trajectoryB | The second trajectory |
[in] | precision | The wanted precision |
[out] | result | The result |
References atInstantTrajectory(), Trajectory::NrPoints, Trajectory::points, PointST::sp, sqDistancePointSP_PointSP(), and PointST::t.
Referenced by EuclideanV1().
PGDLLEXPORT Datum EuclideanV1 | ( | PG_FUNCTION_ARGS | ) |
References Euclidean(), and validateInterpolationPrecision().
PG_FUNCTION_INFO_V1 | ( | EuclideanV1 | ) |