MobilityDB 1.3
Loading...
Searching...
No Matches
Macros | Functions
tfloat_assemble.c File Reference

A simple program that generates a given number of tfloat instants, accumulates each generated instants into an array, and at the end assembles the sequence from the input instants and outputs the number of instants and the last value of the sequence. More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <meos.h>

Macros

#define MAX_INSTANTS   1000000
 

Functions

int main (void)
 

Detailed Description

A simple program that generates a given number of tfloat instants, accumulates each generated instants into an array, and at the end assembles the sequence from the input instants and outputs the number of instants and the last value of the sequence.

This program and the program tfloat_expand.c in the same directory can be used to compare the two alternative strategies for (1) assembling the sequence at the end from the input instants (2) expanding the sequence at each input instant

The instants are generated so they are not redundant, that is, all input instants will appear in the final sequence.

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o tfloat_assemble tfloat_assemble.c -L/usr/local/lib -lmeos