|
Hermes
|
The implementation of Trajectory. More...
#include "../../../h/SpatioTemporal/Trajectory/Similarity.h"#include "../../../h/Spatial/PointSP/Distance.h"#include <math.h>#include <float.h>
Functions | |
| float8 * | DTW (const Trajectory *trajectoryA, const Trajectory *trajectoryB, int32 w, float8 w_percentage, int32 lp, float8 *result) |
| The function returns the Dynamic Time Warping. More... | |
| PGDLLEXPORT Datum | DTWV1 (PG_FUNCTION_ARGS) |
| PG_FUNCTION_INFO_V1 (DTWV1) | |
The implementation of Trajectory.
These functions are documented in the Trajectory/Similarity.h
| float8* DTW | ( | const Trajectory * | trajectoryA, |
| const Trajectory * | trajectoryB, | ||
| int32 | w, | ||
| float8 | w_percentage, | ||
| int32 | lp, | ||
| float8 * | result | ||
| ) |
The function returns the Dynamic Time Warping.
| [in] | trajectoryA | The first trajectory |
| [in] | trajectoryB | The second trajectory |
| [in] | w | the locality constraint |
| [in] | w_percentage | if w < 0 then someone can use percentage of the the trajectory by defining this value |
| [in] | lp | the norm to be used (currently only 1 and 2) |
| [out] | result | The result |
References distanceManhattanPointSP_PointSP(), i(), j, min(), Trajectory::NrPoints, Trajectory::points, PointST::sp, and sqDistancePointSP_PointSP().
Referenced by DTWV1().

| PGDLLEXPORT Datum DTWV1 | ( | PG_FUNCTION_ARGS | ) |
| PG_FUNCTION_INFO_V1 | ( | DTWV1 | ) |