|
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 "../../../h/Utilities/Utilities.h"#include <funcapi.h>#include <access/htup_details.h>#include <math.h>
Functions | |
| float8 | calc_integral (float8 a, float8 b, float8 c, float8 t) |
| float8 | compute_segment_dissim (const PointST *a1, const PointST *a2, const PointST *b1, const PointST *b2, float8 *error) |
| float8 * | DISSIM (const Trajectory *trajectoryA, const Trajectory *trajectoryB, int32 precision, float8 *result, float8 *error) |
| The function returns DSSIM. More... | |
| PGDLLEXPORT Datum | DISSIMExact (PG_FUNCTION_ARGS) |
| PG_FUNCTION_INFO_V1 (DISSIMExact) | |
| PGDLLEXPORT Datum | DISSIMApproximate (PG_FUNCTION_ARGS) |
| PG_FUNCTION_INFO_V1 (DISSIMApproximate) | |
The implementation of Trajectory.
These functions are documented in the Trajectory/Similarity.h
| float8 calc_integral | ( | float8 | a, |
| float8 | b, | ||
| float8 | c, | ||
| float8 | t | ||
| ) |
Referenced by compute_segment_dissim().
| float8 compute_segment_dissim | ( | const PointST * | a1, |
| const PointST * | a2, | ||
| const PointST * | b1, | ||
| const PointST * | b2, | ||
| float8 * | error | ||
| ) |
References calc_integral(), d, differenceInSeconds(), distancePointSP_PointSP(), PointST::sp, PointST::t, timestamp2seconds(), PointSP::x, and PointSP::y.
Referenced by DISSIM().

| float8* DISSIM | ( | const Trajectory * | trajectoryA, |
| const Trajectory * | trajectoryB, | ||
| int32 | precision, | ||
| float8 * | result, | ||
| float8 * | error | ||
| ) |
The function returns DSSIM.
| [in] | trajectoryA | The first trajectory |
| [in] | trajectoryB | The second trajectory |
| [in] | precision | The wanted precision |
| [out] | result | The result |
| [out] | error | The error |
References atInstantTrajectory(), compute_segment_dissim(), Trajectory::NrPoints, Trajectory::points, and PointST::t.
Referenced by DISSIMApproximate(), and DISSIMExact().

| PGDLLEXPORT Datum DISSIMApproximate | ( | PG_FUNCTION_ARGS | ) |
References DISSIM(), and validateInterpolationPrecision().

| PGDLLEXPORT Datum DISSIMExact | ( | PG_FUNCTION_ARGS | ) |
References DISSIM(), and validateInterpolationPrecision().

| PG_FUNCTION_INFO_V1 | ( | DISSIMExact | ) |
| PG_FUNCTION_INFO_V1 | ( | DISSIMApproximate | ) |