34#ifndef __TEMPORAL_WAGGFUNCS_H__
35#define __TEMPORAL_WAGGFUNCS_H__
41#include "temporal/temporal.h"
46 const Interval *interval,
int *count);
48 const Interval *interval,
int *count);
Datum(* datum_func2)(Datum, Datum)
Definition: temporal.h:296
External API of the Mobility Engine Open Source (MEOS) library.
Datum transform(PG_FUNCTION_ARGS)
Definition: postgres_ext_defs.in.h:27
Structure to represent skiplists that keep the current state of an aggregation.
Definition: meos.h:272
Structure to represent temporal values of sequence subtype.
Definition: meos.h:202
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:173
TSequence ** tnumber_transform_wavg(const Temporal *temp, const Interval *interval, int *count)
Transform a temporal integer sequence set into a temporal double and extend it by a time interval.
Definition: temporal_waggfuncs.c:492
TSequence ** temporal_transform_wcount(const Temporal *temp, const Interval *interval, int *count)
Temporal aggregate functions.
Definition: temporal_waggfuncs.c:335
SkipList * temporal_wagg_transfn(SkipList *state, const Temporal *temp, const Interval *interval, datum_func2 func, bool min, bool crossings)
Generic moving window transition function for min, max, and sum aggregation.
Definition: temporal_waggfuncs.c:543
SkipList * temporal_wagg_transform_transfn(SkipList *state, const Temporal *temp, const Interval *interval, datum_func2 func, TSequence **(*transform)(const Temporal *, const Interval *, int *))
Transition function for moving window count and average aggregation for temporal values.
Definition: temporal_waggfuncs.c:561