Warning: Trying to access array offset on value of type null in /home/site/wwwroot/lib/plugins/move/action/rename.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/common.php on line 1955

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/actions.php on line 38
alt._gof [topas wiki]

User Tools

Site Tools


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://doi.org/10.1107/S2053273316013206|Henn, J. 2016. "An Alternative to the Goodness of Fit." Acta Crystallographica A 72 (6): 696-703.]].
 +
 +
 +<code topas>
 +''alternative GOF value as defined in Henn, J. 2016. "An Alternative to the Goodness of Fit." Acta Crystallographica A 72 (6): 696-703.
 +macro aGoFs(val) {
 + prm !N_par = Get(number_independent_parameters);
 + xdd_sum !N_ref = Yobs-Yobs + 1; ''this is the number of datapoints
 + xdd_sum !delta_sq = (Yobs - Ycalc)^2;
 + xdd_sum !sigma_sq_1 = Yobs;
 + xdd_sum !sigma_sq_2 = SigmaYobs^2;
 +
 + ''if SigmaYobs is not defined, then this makes sure you use sigma = sqrt(Yobs)
 + prm sigma_sq = If(sigma_sq_2 == 0, sigma_sq_1,sigma_sq_2);
 +
 + chi2 = (N_ref/(N_ref - N_par)) (delta_sq / sigma_sq); : val
 +}
 +</code>
  
alt._gof.txt · Last modified: 2022/11/03 15:08 by 127.0.0.1