Page 1 of 1

RMSD from esfit

Posted: Sat Aug 09, 2014 1:48 pm
by JulianRees
Hi,
I'd like to be able to save the rmsd that is printed to the command window at the completion of esfit as a variable. Is there a way to do this similar to how one saves the best fit simulation parameters and best spectrum?
Thanks!

Re: RMSD from esfit

Posted: Sat Aug 09, 2014 2:03 pm
by Stefan Stoll
In 4.5.5, the simplest way of getting the rmsd after running esfit is

Code: Select all

[bestSys,bestSpec] = esfit('pepper',expSpec,...)
residuals = expSpec - bestSpec;
rmsd = sqrt(mean(residuals.^2))
This rmsd is directly based on your experimental data and the best fit, whereas the rmsd displayed by the esfit UI and printed in the command window by esfit depends on your fitting target (spectrum itself, its integral, double integral, etc) and on an internal scaling factor.