|
CrowdSenSim
1.1
|
#include "../Headers/Utilities.h"#include <fstream>#include <iostream>#include <string>#include <cstdlib>#include <sstream>#include <vector>#include <cmath>#include <stdlib.h>#include <map>#include <list>#include <algorithm>#include <iomanip>#include <time.h>Macros | |
| #define | pi 3.14159265358979323846 |
| #define | R 6371 |
| #define | TO_RAD (3.1415926536 / 180) |
Functions | |
| double | fRand (double fMin, double fMax) |
| long | rnd32 (long seed) |
| double | uniform (double a, double b, long *seed) |
| double | havdist (double th1, double ph1, double th2, double ph2) |
| std::string | PrintByteUnit (long double bytes) |
| std::string | PrintByteUnitInMiB (long double bytes) |
| #define pi 3.14159265358979323846 |
| #define R 6371 |
| #define TO_RAD (3.1415926536 / 180) |
| double fRand | ( | double | fMin, |
| double | fMax | ||
| ) |
| double havdist | ( | double | th1, |
| double | ph1, | ||
| double | th2, | ||
| double | ph2 | ||
| ) |
It computes the distance in meters between two different points, given the Latitude and Longitude coordinates.
| std::string PrintByteUnit | ( | long double | bytes | ) |
It converts bytes values in KB/MB/GB automatically.
| std::string PrintByteUnitInMiB | ( | long double | bytes | ) |
It converts byte values in MiB.
| long rnd32 | ( | long | seed | ) |
| double uniform | ( | double | a, |
| double | b, | ||
| long * | seed | ||
| ) |
1.8.11