![]() |
MobilityDB 1.3
|
A simple program that generates a given number of tpoint instants, appends the instant into a sequence at each generation, and outputs the number of instants and the distance travelled at the end. More...
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <meos.h>
#include <meos_internal.h>
Macros | |
#define | EXPAND true |
#define | GEODETIC false |
#define | MAX_INSTANTS 1000000 |
#define | MAX_LENGTH_INST 64 |
#define | NO_INSTANTS_BATCH 10000 |
Functions | |
int | main (void) |
A simple program that generates a given number of tpoint instants, appends the instant into a sequence at each generation, and outputs the number of instants and the distance travelled at the end.
The instants are generated so they are not redundant, that is, all input instants will appear in the final sequence. A compiler option allows one to either use expandable structures or to create a new sequence at every new instant generated. Another compiler option allows one to either use geodetic or geometric points.
The program can be build as follows