RMSD from esfit

General forum for EasySpin: questions, how to's, etc.
Locked
JulianRees
Newbie
Posts: 1
Joined: Sat Aug 09, 2014 1:42 pm

RMSD from esfit

Post 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!
Stefan Stoll
EasySpin Creator
Posts: 1047
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: RMSD from esfit

Post 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.
Locked