44#ifndef G4ConvergenceTester_hh
45#define G4ConvergenceTester_hh 1
75 return slope_fitting_function(x);
142 inline void CheckIsUpdated()
150 void calc_grid_point_of_history();
151 void calc_stat_history();
152 void check_stat_history(std::ostream& out =
G4cout);
153 G4double calc_Pearson_r(
G4int, std::vector<G4double>, std::vector<G4double>);
154 G4bool is_monotonically_decrease(std::vector<G4double>);
155 void calc_slope_fit(std::vector<G4double>);
156 G4double slope_fitting_function(std::vector<G4double>);
160 std::map<G4int, G4double> nonzero_histories;
167 std::vector<G4double> cpu_time;
181 G4int largest_score_happened = 0;
191 G4int noBinOfHistory = 16;
192 std::vector<G4int> history_grid;
193 std::vector<G4double> mean_history;
194 std::vector<G4double> var_history;
195 std::vector<G4double> sd_history;
196 std::vector<G4double> r_history;
197 std::vector<G4double> vov_history;
198 std::vector<G4double> fom_history;
199 std::vector<G4double> shift_history;
200 std::vector<G4double> e_history;
201 std::vector<G4double> r2eff_history;
202 std::vector<G4double> r2int_history;
205 std::vector<G4double> largest_scores;
206 std::vector<G4double> f_xi;
207 std::vector<G4double> f_yi;
208 G4int noBinOfPDF = 10;
214 G4bool statsAreUpdated =
true;
215 G4bool showHistory =
true;
G4GLOB_DLL std::ostream G4cout
G4ConvergenceTester & operator+=(G4double val)
void ShowResult(std::ostream &out=G4cout)
G4double GetValueOfMinimizingFunction(std::vector< G4double > x)
void ShowHistory(std::ostream &out=G4cout)
G4ConvergenceTester(G4double)
G4double GetStandardDeviation()