Geant4
10.03
|
#include <G4ConvergenceTester.hh>
Public Member Functions | |
G4ConvergenceTester (G4String theName="NONAME") | |
~G4ConvergenceTester () | |
G4ConvergenceTester (G4double) | |
void | AddScore (G4double) |
void | ShowHistory (std::ostream &out=G4cout) |
void | ShowResult (std::ostream &out=G4cout) |
G4double | GetValueOfMinimizingFunction (std::vector< G4double > x) |
void | ComputeStatistics () |
G4double | GetMean () |
G4double | GetStandardDeviation () |
G4double | GetVariance () |
G4double | GetR () |
G4double | GetEfficiency () |
G4double | GetR2eff () |
G4double | GetR2int () |
G4double | GetShift () |
G4double | GetVOV () |
G4double | GetFOM () |
Private Member Functions | |
void | calStat () |
void | CheckIsUpdated () |
void | calc_grid_point_of_history () |
void | calc_stat_history () |
void | check_stat_history (std::ostream &out=G4cout) |
G4double | calc_Pearson_r (G4int, std::vector< G4double >, std::vector< G4double >) |
G4bool | is_monotonically_decrease (std::vector< G4double >) |
void | calc_slope_fit (std::vector< G4double >) |
G4double | slope_fitting_function (std::vector< G4double >) |
Definition at line 58 of file G4ConvergenceTester.hh.
G4ConvergenceTester::G4ConvergenceTester | ( | G4String | theName = "NONAME" | ) |
Definition at line 46 of file G4ConvergenceTester.cc.
References cpu_time, e_history, fom_history, history_grid, largest_scores, mean_history, noBinOfHistory, nonzero_histories, r2eff_history, r2int_history, r_history, sd_history, shift_history, G4Timer::Start(), timer, var_history, and vov_history.
G4ConvergenceTester::~G4ConvergenceTester | ( | ) |
Definition at line 78 of file G4ConvergenceTester.cc.
References timer.
G4ConvergenceTester::G4ConvergenceTester | ( | G4double | ) |
void G4ConvergenceTester::AddScore | ( | G4double | x | ) |
Definition at line 85 of file G4ConvergenceTester.cc.
References cpu_time, G4cout, G4endl, G4Timer::GetSystemElapsed(), G4Timer::GetUserElapsed(), largest_scores, n, nonzero_histories, statsAreUpdated, G4Timer::Stop(), sum, and timer.
Referenced by B1ConRunAction::EndOfRunAction().
|
private |
Definition at line 263 of file G4ConvergenceTester.cc.
References history_grid, n, and noBinOfHistory.
Referenced by calStat().
|
private |
Definition at line 623 of file G4ConvergenceTester.cc.
References a.
Referenced by check_stat_history().
|
private |
Definition at line 674 of file G4ConvergenceTester.cc.
References f_xi, f_yi, G4SimplexDownhill< T >::GetMinimumPoint(), largest_scores, G4INCL::Math::max(), G4INCL::Math::min(), minimizer, n, noBinOfPDF, and slope.
Referenced by calStat().
|
private |
Definition at line 282 of file G4ConvergenceTester.cc.
References cpu_time, e_history, fom_history, history_grid, mean_history, noBinOfHistory, nonzero_histories, r2eff_history, r2int_history, r_history, sd_history, shift_history, showHistory, var_history, and vov_history.
Referenced by calStat().
|
private |
Definition at line 133 of file G4ConvergenceTester.cc.
References calc_grid_point_of_history(), calc_slope_fit(), calc_stat_history(), calcSLOPE, cpu_time, efficiency, fom, fom_1, largest, largest_score_happened, largest_scores, mean, mean_1, n, nonzero_histories, r, r2eff, r2int, r_1, sd, sd_1, shift, shift_1, statsAreUpdated, sum, var, var_1, vov, and vov_1.
Referenced by CheckIsUpdated(), ComputeStatistics(), and ShowResult().
|
private |
Definition at line 480 of file G4ConvergenceTester.cc.
References calc_Pearson_r(), fom_history, G4endl, history_grid, is_monotonically_decrease(), mean_history, noPass, r_history, var_history, and vov_history.
Referenced by ShowResult().
|
inlineprivate |
Definition at line 84 of file G4ConvergenceTester.hh.
References calStat(), and statsAreUpdated.
Referenced by GetEfficiency(), GetFOM(), GetMean(), GetR(), GetR2eff(), GetR2int(), GetShift(), GetStandardDeviation(), GetVariance(), and GetVOV().
|
inline |
Definition at line 88 of file G4ConvergenceTester.hh.
References calStat().
|
inline |
Definition at line 95 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and efficiency.
|
inline |
Definition at line 100 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and fom.
|
inline |
Definition at line 91 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and mean.
|
inline |
Definition at line 94 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and r.
|
inline |
Definition at line 96 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and r2eff.
|
inline |
Definition at line 97 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and r2int.
|
inline |
Definition at line 98 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and shift.
|
inline |
Definition at line 92 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and sd.
Definition at line 74 of file G4ConvergenceTester.hh.
References slope_fitting_function().
|
inline |
Definition at line 93 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and var.
|
inline |
Definition at line 99 of file G4ConvergenceTester.hh.
References CheckIsUpdated(), and vov.
Definition at line 658 of file G4ConvergenceTester.cc.
References FALSE, noPass, and TRUE.
Referenced by check_stat_history().
void G4ConvergenceTester::ShowHistory | ( | std::ostream & | out = G4cout | ) |
Definition at line 439 of file G4ConvergenceTester.cc.
References e_history, fom_history, G4endl, history_grid, mean_history, name, noBinOfHistory, r2eff_history, r2int_history, r_history, sd_history, shift_history, showHistory, var_history, and vov_history.
Referenced by B1ConRunAction::EndOfRunAction().
void G4ConvergenceTester::ShowResult | ( | std::ostream & | out = G4cout | ) |
Definition at line 366 of file G4ConvergenceTester.cc.
References calcSLOPE, calStat(), check_stat_history(), efficiency, fom, fom_1, G4endl, largest, largest_score_happened, mean, mean_1, name, noPass, noTotal, r, r_1, sd, shift, shift_1, showHistory, slope, statsAreUpdated, var, var_1, and vov.
Referenced by B1ConRunAction::EndOfRunAction().
Definition at line 764 of file G4ConvergenceTester.cc.
Referenced by GetValueOfMinimizingFunction().
|
private |
Definition at line 172 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 122 of file G4ConvergenceTester.hh.
Referenced by AddScore(), calc_stat_history(), calStat(), and G4ConvergenceTester().
|
private |
Definition at line 155 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 128 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetEfficiency(), and ShowResult().
|
private |
Definition at line 161 of file G4ConvergenceTester.hh.
Referenced by calc_slope_fit(), and slope_fitting_function().
|
private |
Definition at line 162 of file G4ConvergenceTester.hh.
Referenced by calc_slope_fit(), and slope_fitting_function().
|
private |
Definition at line 133 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetFOM(), and ShowResult().
|
private |
Definition at line 144 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 153 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), check_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 147 of file G4ConvergenceTester.hh.
Referenced by calc_grid_point_of_history(), calc_stat_history(), check_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 135 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 136 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 160 of file G4ConvergenceTester.hh.
Referenced by AddScore(), calc_slope_fit(), calStat(), and G4ConvergenceTester().
|
private |
Definition at line 124 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetMean(), and ShowResult().
|
private |
Definition at line 138 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 148 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), check_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 164 of file G4ConvergenceTester.hh.
Referenced by calc_slope_fit().
|
private |
Definition at line 117 of file G4ConvergenceTester.hh.
Referenced by AddScore(), calc_grid_point_of_history(), calc_slope_fit(), and calStat().
|
private |
Definition at line 114 of file G4ConvergenceTester.hh.
Referenced by ShowHistory(), and ShowResult().
|
private |
Definition at line 146 of file G4ConvergenceTester.hh.
Referenced by calc_grid_point_of_history(), calc_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 163 of file G4ConvergenceTester.hh.
Referenced by calc_slope_fit().
Definition at line 115 of file G4ConvergenceTester.hh.
Referenced by AddScore(), calc_stat_history(), calStat(), and G4ConvergenceTester().
|
private |
Definition at line 166 of file G4ConvergenceTester.hh.
Referenced by check_stat_history(), is_monotonically_decrease(), and ShowResult().
|
private |
Definition at line 167 of file G4ConvergenceTester.hh.
Referenced by ShowResult().
|
private |
Definition at line 127 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetR(), and ShowResult().
|
private |
Definition at line 129 of file G4ConvergenceTester.hh.
Referenced by calStat(), and GetR2eff().
|
private |
Definition at line 156 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 130 of file G4ConvergenceTester.hh.
Referenced by calStat(), and GetR2int().
|
private |
Definition at line 157 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 141 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 151 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), check_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 126 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetStandardDeviation(), and ShowResult().
|
private |
Definition at line 140 of file G4ConvergenceTester.hh.
Referenced by calStat().
|
private |
Definition at line 150 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 131 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetShift(), and ShowResult().
|
private |
Definition at line 142 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 154 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 171 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), ShowHistory(), and ShowResult().
|
private |
Definition at line 159 of file G4ConvergenceTester.hh.
Referenced by calc_slope_fit(), and ShowResult().
|
private |
Definition at line 169 of file G4ConvergenceTester.hh.
Referenced by AddScore(), calStat(), CheckIsUpdated(), and ShowResult().
|
private |
Definition at line 119 of file G4ConvergenceTester.hh.
Referenced by AddScore(), and calStat().
|
private |
Definition at line 121 of file G4ConvergenceTester.hh.
Referenced by AddScore(), G4ConvergenceTester(), and ~G4ConvergenceTester().
|
private |
Definition at line 125 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetVariance(), and ShowResult().
|
private |
Definition at line 139 of file G4ConvergenceTester.hh.
Referenced by calStat(), and ShowResult().
|
private |
Definition at line 149 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), check_stat_history(), G4ConvergenceTester(), and ShowHistory().
|
private |
Definition at line 132 of file G4ConvergenceTester.hh.
Referenced by calStat(), GetVOV(), and ShowResult().
|
private |
Definition at line 143 of file G4ConvergenceTester.hh.
Referenced by calStat().
|
private |
Definition at line 152 of file G4ConvergenceTester.hh.
Referenced by calc_stat_history(), check_stat_history(), G4ConvergenceTester(), and ShowHistory().