Hermes
 All Data Structures Files Functions Variables Macros Pages
Properties.c File Reference

The implementation of Trajectory. More...

Include dependency graph for Properties.c:

Functions

Interval * durationInIntervalTrajectory (Datum trajectory, Interval *result)
 
PGDLLEXPORT Datum durationInIntervalTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (durationInIntervalTrajectoryV1)
 
float8 * durationTrajectory (Datum trajectory, float8 *result)
 
float8 * lengthTrajectory (const Trajectory *trajectory, float8 *result)
 
PGDLLEXPORT Datum lengthTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (lengthTrajectoryV1)
 
float8 * displacementTrajectory (Datum trajectory, float8 *result)
 
PGDLLEXPORT Datum displacementTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (displacementTrajectoryV1)
 
PointSTcentroidTrajectory (const Trajectory *trajectory, PointST *result)
 
PGDLLEXPORT Datum centroidTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (centroidTrajectoryV1)
 
PointSPmassCenterTrajectory (const Trajectory *trajectory, PointSP *result)
 
PGDLLEXPORT Datum massCenterTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (massCenterTrajectoryV1)
 
float8 * gyradiusTrajectory (const Trajectory *trajectory, float8 *result)
 
PGDLLEXPORT Datum gyradiusTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (gyradiusTrajectoryV1)
 
float8 * angleXXAvgTrajectory (const Trajectory *trajectory, float8 *result)
 
PGDLLEXPORT Datum angleXXAvgTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (angleXXAvgTrajectoryV1)
 
float8 * angleXXTrajectory (Datum trajectory, float8 *result)
 
PGDLLEXPORT Datum angleXXTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (angleXXTrajectoryV1)
 
float8 * averageSpeedTrajectory (Datum trajectory, float8 *result)
 
PGDLLEXPORT Datum averageSpeedTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (averageSpeedTrajectoryV1)
 
float8 * normalizedSamplingRateTrajectory (Datum trajectory, float8 *result)
 
PGDLLEXPORT Datum normalizedSamplingRateTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (normalizedSamplingRateTrajectoryV1)
 

Detailed Description

The implementation of Trajectory.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).

These functions are documented in the Trajectory/Properties.h

Function Documentation

float8* angleXXAvgTrajectory ( const Trajectory trajectory,
float8 *  result 
)

References angleXXLineSP(), SegmentSP::e, i(), SegmentSP::i, Trajectory::NrPoints, Trajectory::points, SegmentSP2LineSP(), and PointST::sp.

Referenced by angleXXAvgTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum angleXXAvgTrajectoryV1 ( PG_FUNCTION_ARGS  )

References angleXXAvgTrajectory().

Here is the call graph for this function:

float8* angleXXTrajectory ( Datum  trajectory,
float8 *  result 
)

References angleXXLineSP(), SegmentSP::e, SegmentSP::i, NrPointsTrajectory(), pointAtTrajectory(), SegmentSP2LineSP(), and PointST::sp.

Referenced by angleXXTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum angleXXTrajectoryV1 ( PG_FUNCTION_ARGS  )

References angleXXTrajectory().

Here is the call graph for this function:

float8* averageSpeedTrajectory ( Datum  trajectory,
float8 *  result 
)
PGDLLEXPORT Datum averageSpeedTrajectoryV1 ( PG_FUNCTION_ARGS  )

References averageSpeedTrajectory().

Here is the call graph for this function:

PointST* centroidTrajectory ( const Trajectory trajectory,
PointST result 
)
PGDLLEXPORT Datum centroidTrajectoryV1 ( PG_FUNCTION_ARGS  )

References centroidTrajectory().

Here is the call graph for this function:

float8* displacementTrajectory ( Datum  trajectory,
float8 *  result 
)

References distancePointSP_PointSP(), NrPointsTrajectory(), pointAtTrajectory(), and PointST::sp.

Referenced by displacementTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum displacementTrajectoryV1 ( PG_FUNCTION_ARGS  )

References displacementTrajectory().

Here is the call graph for this function:

Interval* durationInIntervalTrajectory ( Datum  trajectory,
Interval *  result 
)

References differenceInInterval(), e(), i(), NrPointsTrajectory(), pointAtTrajectory(), and PointST::t.

Referenced by durationInIntervalTrajectoryV1(), and durationTrajectory().

Here is the call graph for this function:

PGDLLEXPORT Datum durationInIntervalTrajectoryV1 ( PG_FUNCTION_ARGS  )

References durationInIntervalTrajectory().

Here is the call graph for this function:

float8* durationTrajectory ( Datum  trajectory,
float8 *  result 
)

References durationInIntervalTrajectory(), and interval2seconds().

Here is the call graph for this function:

float8* gyradiusTrajectory ( const Trajectory trajectory,
float8 *  result 
)

References centroidTrajectory(), distancePointSP_PointSP(), i(), Trajectory::NrPoints, Trajectory::points, and PointST::sp.

Referenced by gyradiusTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum gyradiusTrajectoryV1 ( PG_FUNCTION_ARGS  )

References gyradiusTrajectory().

Here is the call graph for this function:

float8* lengthTrajectory ( const Trajectory trajectory,
float8 *  result 
)

References distancePointSP_PointSP(), i(), Trajectory::NrPoints, Trajectory::points, and PointST::sp.

Referenced by lengthTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum lengthTrajectoryV1 ( PG_FUNCTION_ARGS  )

References lengthTrajectory().

Here is the call graph for this function:

PointSP* massCenterTrajectory ( const Trajectory trajectory,
PointSP result 
)

References i(), Trajectory::NrPoints, Trajectory::points, round(), PointST::sp, PointSP::x, and PointSP::y.

Referenced by massCenterTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum massCenterTrajectoryV1 ( PG_FUNCTION_ARGS  )

References massCenterTrajectory().

Here is the call graph for this function:

float8* normalizedSamplingRateTrajectory ( Datum  trajectory,
float8 *  result 
)

References differenceInSeconds(), e(), i(), NrPointsTrajectory(), pointAtTrajectory(), and PointST::t.

Referenced by normalizedSamplingRateTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum normalizedSamplingRateTrajectoryV1 ( PG_FUNCTION_ARGS  )

References normalizedSamplingRateTrajectory().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( durationInIntervalTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( lengthTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( displacementTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( centroidTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( massCenterTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( gyradiusTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( angleXXAvgTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( angleXXTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( averageSpeedTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( normalizedSamplingRateTrajectoryV1  )