alt._gof
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | alt._gof [2022/11/03 15:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Alternative Goodness of Fit ====== | ||
+ | |||
+ | This is an alternative goodness of fit metric described in [1]. | ||
+ | |||
+ | Macro by: Matthew Rowles. All the actual work: Julian Henn | ||
+ | |||
+ | |||
+ | [1] [[https:// | ||
+ | |||
+ | |||
+ | <code topas> | ||
+ | '' | ||
+ | macro aGoFs(val) { | ||
+ | prm !N_par = Get(number_independent_parameters); | ||
+ | xdd_sum !N_ref = Yobs-Yobs + 1; '' | ||
+ | xdd_sum !delta_sq = (Yobs - Ycalc)^2; | ||
+ | xdd_sum !sigma_sq_1 = Yobs; | ||
+ | xdd_sum !sigma_sq_2 = SigmaYobs^2; | ||
+ | |||
+ | '' | ||
+ | prm sigma_sq = If(sigma_sq_2 == 0, sigma_sq_1, | ||
+ | |||
+ | chi2 = (N_ref/ | ||
+ | } | ||
+ | </ | ||
alt._gof.txt · Last modified: 2022/11/03 15:08 by 127.0.0.1