-
Notifications
You must be signed in to change notification settings - Fork 5
/
gda_sa.h
201 lines (184 loc) · 6.23 KB
/
gda_sa.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#ifndef __JSGEODSA_GDA_SA__
#define __JSGEODSA_GDA_SA__
#include <string>
#include <vector>
class GeoDaWeight;
class LISA;
class BatchLISA;
class AbstractGeoDa;
// APIs of local spatial autocorrelation
/**
*
* @param w
* @param data
* @param undefs
* @param significance_cutoff
* @param nCPUs
* @param permutations
* @param last_seed_used
* @return
*/
LISA *gda_localmoran(GeoDaWeight *w,
const std::vector<double> &data,
const std::vector<bool> &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param data1
* @param data2
* @param undefs
* @param significance_cutoff
* @param nCPUs
* @param permutations
* @param last_seed_used
* @return
*/
LISA *gda_bi_localmoran(GeoDaWeight *w,
const std::vector<double> &data1,
const std::vector<double> &data2,
const std::vector<bool> &undefs,
double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param event_data
* @param base_data
* @param significance_cutoff
* @param nCPUs
* @param permutations
* @param last_seed_used
* @return
*/
LISA *gda_localmoran_eb(GeoDaWeight *w,
const std::vector<double> &event_data,
const std::vector<double> &base_data,
double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param data
* @param undefs
* @return
*/
BatchLISA *gda_batchlocalmoran(GeoDaWeight *w, const std::vector<std::vector<double> > &data,
const std::vector<std::vector<bool> > &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param data
* @param undefs
* @return
*/
LISA *gda_localgeary(GeoDaWeight *w, const std::vector<double> &data,
const std::vector<bool> &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param data
* @param undefs
* @return
*/
LISA *gda_localmultigeary(GeoDaWeight *w, const std::vector<std::vector<double> > &data,
const std::vector<std::vector<bool> > &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param data
* @param undefs
* @return
*/
LISA *gda_localjoincount(GeoDaWeight *w, const std::vector<double> &data,
const std::vector<bool> &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
LISA *gda_localmultijoincount(GeoDaWeight *w, const std::vector<std::vector<double> > &data,
const std::vector<std::vector<bool> > &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param data
* @param undefs
* @return
*/
LISA *gda_localg(GeoDaWeight *w, const std::vector<double> &data,
const std::vector<bool> &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param data
* @param undefs
* @return
*/
LISA *gda_localgstar(GeoDaWeight *w, const std::vector<double> &data,
const std::vector<bool> &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param quantile
* @param data
* @param undefs
* @return
*/
LISA *gda_quantilelisa(GeoDaWeight *w, unsigned int k, unsigned int quantile, const std::vector<double> &data,
const std::vector<bool> &undefs, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param w
* @param k
* @param quantile
* @param data
* @param undefs
* @return
*/
LISA *gda_multiquantilelisa(GeoDaWeight *w, const std::vector<int>& k_s, const std::vector<int>& quantile_s, const std::vector<std::vector<double> > &data_s,
const std::vector<std::vector<bool> > &undefs_s, double significance_cutoff,
int nCPUs, int permutations, const std::string& permutation_method, int last_seed_used);
/**
*
* @param lisa
* @param current_p
* @return
*/
double gda_fdr(LISA *lisa, double current_p);
/**
*
* @param lisa
* @param current_p
* @return
*/
double gda_bo(LISA *lisa, double current_p);
/**
*
* @param geoda
* @param k
* @param power
* @param is_inverse
* @param is_arc
* @param is_mile
* @param data
* @param scale_method
* @param dist_type
* @return
*/
std::vector<std::vector<double> > gda_neighbor_match_test(AbstractGeoDa* geoda, unsigned int k,
double power,
bool is_inverse,
bool is_arc,
bool is_mile,
const std::vector<std::vector<double> >& data,
const std::string& scale_method,
const std::string& dist_type);
std::vector<std::vector<double> > gda_neighbor_match_test(GeoDaWeight *sw, unsigned int knn,
const std::vector<std::vector<double> >& _data,
const std::string& scale_method,
const std::string& dist_type);
#endif