|
Hermes
|
The implementation of Trajectory. More...
#include "../../../h/SpatioTemporal/Trajectory/Similarity.h"#include "../../../h/Spatial/PointSP/Distance.h"
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) | |
The implementation of Trajectory.
These functions are documented in the Trajectory/Similarity.h
| float8* ERP | ( | const Trajectory * | trajectoryA, |
| const Trajectory * | trajectoryB, | ||
| int32 | lp, | ||
| float8 * | result | ||
| ) |
The function returns the ERP.
| [in] | trajectoryA | The first trajectory |
| [in] | trajectoryB | The second trajectory |
| [in] | lp | the norm to be used (currently only 1 and 2) |
| [out] | result | The result |
References distanceManhattanPointSP_PointSP(), distancePointSP_PointSP(), i(), j, Trajectory::NrPoints, Trajectory::points, PointST::sp, PointSP::x, and PointSP::y.
Referenced by ERPV1().

| PGDLLEXPORT Datum ERPV1 | ( | PG_FUNCTION_ARGS | ) |
| PG_FUNCTION_INFO_V1 | ( | ERPV1 | ) |