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/actions.php on line 38
alt._gof [topas wiki]

User Tools

Site Tools


alt._gof

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] Henn, J. 2016. "An Alternative to the Goodness of Fit." Acta Crystallographica A 72 (6): 696-703..

''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
}
alt._gof.txt · Last modified: 2022/11/03 15:08 by 127.0.0.1