alt._gof
Differences
This shows you the differences between two versions of the page.
| alt._gof [2017/02/03 01:42] – created rowlesmr3 | alt._gof [2025/09/19 15:18] (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/ | ||
| + | } | ||
| + | </ | ||