You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change interace function from t_cg to p_cg to 1) solve the efficiency problem for windows; 2) more straightforward to use probability than the chi-square critical value to users
Copy file name to clipboardexpand all lines: src/cxx/cold_flex.c
+8-9
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,8 @@ int cold_flex(
44
44
inttmask_b2, /* I: the band id used for tmask */
45
45
intvalid_num_scenes, /* I: number of valid scenes */
46
46
intpos, /* I: the position id of pixel */
47
-
doublepcg, /* I: probability threshold of change threshold */
47
+
doublet_cg, /* I: threshold for identfying breaks */
48
+
doublemax_t_cg, /* I: threshold for identfying outliers */
48
49
intconse, /* I: consecutive observation number */
49
50
boolb_outputCM, /* I: indicate if outputting change magnitudes for object-based cold, for cold only, it is the false */
50
51
intstarting_date, /* I: (optional) the starting date of the whole dataset to enable reconstruct CM_date, all pixels for a tile should have the same date, only for b_outputCM is True */
int64_t*fmask_buf, /* I: mask-based time series */
184
183
intnbands, /* I: input band number */
185
184
int*id_range,
186
-
doubletcg, /* I: threshold of change threshold */
185
+
doublet_cg, /* I: threshold for identfying breaks */
186
+
doublemax_t_cg, /* I: threshold for identfying outliers */
187
187
intconse, /* I: consecutive observation number */
188
188
boolb_outputCM, /* I: indicate if cold is running as the first step of object-based cold*/
189
189
intstarting_date, /* I: the starting date of the whole dataset to enable reconstruct CM_date, all pixels for a tile should have the same date, only for b_outputCM is True */
Copy file name to clipboardexpand all lines: src/cxx/cold_flex.h
+4-2
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,8 @@ int cold_flex(
14
14
inttmask_b2, /* I: the band id used for tmask */
15
15
intvalid_num_scenes, /* I: number of valid scenes */
16
16
intpos, /* I: the position id of pixel */
17
-
doublepcg, /* I: probability threshold of change threshold */
17
+
doublet_cg, /* I: threshold for identfying breaks */
18
+
doublemax_t_cg, /* I: threshold for identfying outliers */
18
19
intconse, /* I: consecutive observation number */
19
20
boolb_outputCM, /* I: indicate if outputting change magnitudes for object-based cold, for cold only, it is the false */
20
21
intstarting_date, /* I: (optional) the starting date of the whole dataset to enable reconstruct CM_date, all pixels for a tile should have the same date, only for b_outputCM is True */
@@ -33,7 +34,8 @@ int stand_procedure_flex(
33
34
int64_t*fmask_buf, /* I: mask-based time series */
34
35
intnbands, /* I: input band number */
35
36
int*id_range,
36
-
doubletcg, /* I: threshold of change threshold */
37
+
doublet_cg, /* I: threshold for identfying breaks */
38
+
doublemax_t_cg, /* I: threshold for identfying outliers */
37
39
intconse, /* I: consecutive observation number */
38
40
boolb_outputCM, /* I: indicate if cold is running as the first step of object-based cold*/
39
41
intstarting_date, /* I: the starting date of the whole dataset to enable reconstruct CM_date, all pixels for a tile should have the same date, only for b_outputCM is True */
0 commit comments