Hermes
|
The implementation of Trajectory. More...
#include "../../h/SpatioTemporal/Trajectory/Interpolation.h"
#include "../../h/SpatioTemporal/Trajectory/Accessors.h"
#include "../../h/SpatioTemporal/Trajectory/Editors.h"
#include "../../h/SpatioTemporal/Trajectory/Constructors.h"
#include "../../h/SpatioTemporal/Trajectory/SessionParameters.h"
#include "../../h/SpatioTemporal/SegmentST/Accessors.h"
#include "../../h/Temporal/Period/Interactions.h"
#include "../../h/Spatial/PointSP/Distance.h"
#include "../../h/Spatial/SegmentSP/Properties.h"
#include "../../h/Spatial/SegmentSP/ArithmeticOperators.h"
#include "../../h/Spatial/SegmentSP/RelationalOperators.h"
#include "../../h/Spatial/SegmentSP/Interactions.h"
#include "../../h/Spatial/SegmentSP/Distance.h"
#include "../../h/Spatial/BoxSP/RelationalOperators.h"
#include "../../h/Utilities/Utilities.h"
#include "../../h/Utilities/MSVCWorkarounds.h"
#include "../../h/SessionParameters.h"
#include <funcapi.h>
#include <math.h>
The implementation of Trajectory.
These functions are documented in the Trajectory/Interpolation.h
float8* accelerationAtTrajectory | ( | Datum | trajectory, |
int32 | i, | ||
const float8 * | s0, | ||
int32 | precision, | ||
float8 * | result | ||
) |
References differenceInSeconds(), i(), Trajectory::NrPoints, NrPointsTrajectory(), Trajectory::points, speedAtTrajectory(), subTrajectory(), and PointST::t.
Referenced by accelerationAtTrajectoryV1(), accelerationAtTrajectoryV1_2(), accelerationAtTTrajectory(), atBoxTrajectory(), atDistanceTrajectory(), atInstantTrajectory(), atPointTrajectory(), and speedAtTTrajectory().
PGDLLEXPORT Datum accelerationAtTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
PGDLLEXPORT Datum accelerationAtTrajectoryV1_2 | ( | PG_FUNCTION_ARGS | ) |
References accelerationAtTrajectory(), and validateInterpolationPrecision().
float8* accelerationAtTTrajectory | ( | Datum | trajectory, |
Timestamp | ts, | ||
int32 | precision, | ||
float8 * | result | ||
) |
References accelerationAtTrajectory(), i(), j, Trajectory::NrPoints, NrPointsTrajectory(), pointAtTrajectory(), points(), samplingPeriodTrajectory(), PointST::t, timestamp2seconds(), and trajectory().
Referenced by accelerationAtTTrajectoryV1().
PGDLLEXPORT Datum accelerationAtTTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References accelerationAtTTrajectory(), and validateInterpolationPrecision().
int32 atBoxSTTrajectory | ( | Datum | trajectory, |
const BoxST * | box, | ||
int32 | precision, | ||
Trajectory *** | result | ||
) |
References atBoxTrajectory(), atPeriodTrajectory(), BoxST::sp, and BoxST::t.
Referenced by atBoxSTTrajectoryV1(), and intersectsTrajectory_BoxST().
PGDLLEXPORT Datum atBoxSTTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References atBoxSTTrajectory(), i(), updateMetadataTrajectory(), and validateInterpolationPrecision().
int32 atBoxTrajectory | ( | const Trajectory * | trajectory, |
const BoxSP * | box, | ||
int32 | precision, | ||
Trajectory *** | result | ||
) |
References accelerationAtTrajectory(), allocateTrajectory(), containedSegmentSP_BoxSP(), containsBoxSP_PointSP(), distancePointSP_PointSP(), SegmentSP::e, Period::e, expandOnPointTrajectory(), expandOnSegmentTrajectory(), i(), SegmentSP::i, Period::i, intersectionSegmentSP_BoxSP(), Trajectory::NrPoints, Trajectory::points, PointST::sp, SegmentST::sp, speedAtTrajectory(), PointST::t, SegmentST::t, and timestampPlusSeconds().
Referenced by atBoxSTTrajectory(), and atBoxTrajectoryV1().
PGDLLEXPORT Datum atBoxTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References atBoxTrajectory(), i(), updateMetadataTrajectory(), and validateInterpolationPrecision().
PointST* atDistanceTrajectory | ( | const Trajectory * | trajectory, |
float8 | distance, | ||
int32 | precision, | ||
PointST * | result | ||
) |
References accelerationAtTrajectory(), clonePointST(), SegmentSP::e, Period::e, i(), SegmentSP::i, Period::i, length(), lengthSegmentSP(), Trajectory::NrPoints, Trajectory::points, resizeSegmentSP(), PointST::sp, SegmentST::sp, speedAtTrajectory(), PointST::t, SegmentST::t, and timestampPlusSeconds().
Referenced by atDistanceTrajectoryV1().
PGDLLEXPORT Datum atDistanceTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References atDistanceTrajectory(), and validateInterpolationPrecision().
References accelerationAtTrajectory(), clonePointST(), differenceInSeconds(), distancePointSP_PointSP(), i(), j, length(), Trajectory::NrPoints, NrPointsTrajectory(), pointAtTrajectory(), points(), Trajectory::points, round(), samplingPeriodTrajectory(), PointST::sp, speedAtTrajectory(), subTrajectory(), PointST::t, timestamp2seconds(), trajectory(), PointSP::x, and PointSP::y.
Referenced by atInstantTrajectoryV1(), atPeriodTrajectory(), Chebyshev(), DISSIM(), Euclidean(), Manhattan(), simplifyEpochTrajectory(), and simplifyTrajectory().
PGDLLEXPORT Datum atInstantTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References atInstantTrajectory(), and validateInterpolationPrecision().
Trajectory* atPeriodTrajectory | ( | Datum | trajectory, |
const Period * | period, | ||
int32 | precision | ||
) |
References atInstantTrajectory(), constructorPointTrajectory(), Period::e, i(), Period::i, intersectionPeriod_Period(), j, Trajectory::NrPoints, NrPointsTrajectory(), pointAtTrajectory(), Trajectory::points, samplingPeriodTrajectory(), subTrajectory(), PointST::t, timestamp2seconds(), and trajectory().
Referenced by atBoxSTTrajectory(), and atPeriodTrajectoryV1().
PGDLLEXPORT Datum atPeriodTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References atPeriodTrajectory(), updateMetadataTrajectory(), and validateInterpolationPrecision().
int32 atPointTrajectory | ( | const Trajectory * | trajectory, |
const PointSP * | point, | ||
int32 | precision, | ||
PointST *** | result | ||
) |
References accelerationAtTrajectory(), distancePointSP_PointSP(), distanceSegmentSP_PointSP(), SegmentSP::e, Period::e, equalsPointSP(), i(), SegmentSP::i, Period::i, Trajectory::NrPoints, Trajectory::points, PointST::sp, SegmentST::sp, speedAtTrajectory(), PointST::t, SegmentST::t, timestampPlusSeconds(), and zeroTolerance.
Referenced by atPointTrajectoryV1().
PGDLLEXPORT Datum atPointTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References atPointTrajectory(), i(), and validateInterpolationPrecision().
PG_FUNCTION_INFO_V1 | ( | speedAtTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | speedAtTrajectoryV1_2 | ) |
PG_FUNCTION_INFO_V1 | ( | accelerationAtTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | accelerationAtTrajectoryV1_2 | ) |
PG_FUNCTION_INFO_V1 | ( | speedAtTTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | accelerationAtTTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | atInstantTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | atPeriodTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | atDistanceTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | atPointTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | atBoxTrajectoryV1 | ) |
PG_FUNCTION_INFO_V1 | ( | atBoxSTTrajectoryV1 | ) |
float8* speedAtTrajectory | ( | Datum | trajectory, |
int32 | i, | ||
const float8 * | s0, | ||
int32 | precision, | ||
float8 * | result | ||
) |
References differenceInSeconds(), distancePointSP_PointSP(), j, Trajectory::NrPoints, NrPointsTrajectory(), Trajectory::points, PointST::sp, subTrajectory(), and PointST::t.
Referenced by accelerationAtTrajectory(), atBoxTrajectory(), atDistanceTrajectory(), atInstantTrajectory(), atPointTrajectory(), speedAtTrajectoryV1(), speedAtTrajectoryV1_2(), and speedAtTTrajectory().
PGDLLEXPORT Datum speedAtTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
PGDLLEXPORT Datum speedAtTrajectoryV1_2 | ( | PG_FUNCTION_ARGS | ) |
float8* speedAtTTrajectory | ( | Datum | trajectory, |
Timestamp | ts, | ||
int32 | precision, | ||
float8 * | result | ||
) |
References accelerationAtTrajectory(), differenceInSeconds(), i(), j, Trajectory::NrPoints, NrPointsTrajectory(), pointAtTrajectory(), points(), Trajectory::points, samplingPeriodTrajectory(), speedAtTrajectory(), PointST::t, timestamp2seconds(), timestampPlusSeconds(), and trajectory().
Referenced by speedAtTTrajectoryV1().
PGDLLEXPORT Datum speedAtTTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References speedAtTTrajectory(), and validateInterpolationPrecision().