-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrediction.h
67 lines (43 loc) · 1.66 KB
/
Prediction.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef MAIN_TEST_H
#define MAIN_TEST_H
#include <stdio.h>
#include <iostream>
#include <fstream>
#include "Values.h"
#include "Models/TR_Model.h"
#include "Models/ITU_Model.h"
#include "Mapping.h"
#include "Models/ITM_Model.h"
#include "Image.h"
#include <QDate>
#include <QTime>
#include <QtCore>
#include <QThread>
#include <mutex>
double wavelength_m(double frequency_MHz);
fstream* Open_File(char* text);
double calculate_hF1(double f_MHz, double elev[],double tht_km, double rht_km, double distance_km);
double pathloss_ITM_ITU_with_Mix(prop_type &prop,propv_type &propv, double elev[]);
void initialize_parameters(prop_type &prop, propv_type &propv, double elev[]);
void settings(prop_type &prop, propv_type& propv);
double calculate_receive_power(double horizon,double vert, double pl,double pwr_dbm,double g_dbi, double c_loss_db, double r_g_dbi,
double azimuth, double altitude, double &ver, double &hor ,double* Ant);
int prediction(Values *myValues, Image *myMap);
void work(int Threadnumber, int max_index, int min_index, Height_Map &map1, prop_type &prop,
propv_type &propv, Image *myMap, Values *myValues, double* Ant);
class myThread : public QThread
{
Q_OBJECT
void run();
public:
int max_index, min_index;
Image *myMap;
prop_type prop;
Height_Map map1;
propv_type propv;
Values *myValues;
double* AntennaArray;
int t_number;
void Thread_init(int t_number,int max_index, int min_index, Image *myMap, prop_type prop, Height_Map map1, propv_type propv, Values *myValues,double* Ant);
};
#endif // MAIN_TEST_H