Hermes
|
The implementation of Trajectory. More...
Functions | |
float8 | stddevTrajectory (const Trajectory *trajectory) |
bool | match (int32 iA, int32 iB, const PointSP *a, const PointSP *b, int32 w, float8 eps) |
float8 * | LCSS (const Trajectory *trajectoryA, const Trajectory *trajectoryB, int32 w, float8 w_percentage, float8 eps, float8 *result) |
The function returns the Longest Common Subsequence. More... | |
PGDLLEXPORT Datum | LCSSV1 (PG_FUNCTION_ARGS) |
PG_FUNCTION_INFO_V1 (LCSSV1) | |
The implementation of Trajectory.
These functions are documented in the Trajectory/Similarity.h
float8* LCSS | ( | const Trajectory * | trajectoryA, |
const Trajectory * | trajectoryB, | ||
int32 | w, | ||
float8 | w_percentage, | ||
float8 | eps, | ||
float8 * | result | ||
) |
The function returns the Longest Common Subsequence.
[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] | eps | the threshold, which determines whether or not two elements match. if eps<=0 or eps>=1 then eps = min(stedev(trajectories)) |
[out] | result | The result |
References i(), j, match(), Trajectory::NrPoints, Trajectory::points, PointST::sp, and stddevTrajectory().
Referenced by LCSSV1().
PGDLLEXPORT Datum LCSSV1 | ( | PG_FUNCTION_ARGS | ) |
References PointSP::x, and PointSP::y.
Referenced by LCSS().
PG_FUNCTION_INFO_V1 | ( | LCSSV1 | ) |
float8 stddevTrajectory | ( | const Trajectory * | trajectory | ) |
References i(), Trajectory::NrPoints, Trajectory::points, PointST::sp, PointSP::x, and PointSP::y.
Referenced by LCSS().