pdfgui and Rw calculation

273 views
Skip to first unread message

peral...@gmail.com

unread,
Oct 15, 2014, 10:54:45 AM10/15/14
to diffpy...@googlegroups.com
Dear colleagues,

I am assuming that Rw that pdfgui calculates when fitting the pdf is using the standard deviations of the PDF data as weights, am I correct? Or is it using 1/sqrt(Gexp(ri)) as weight?
Also, in case that there is no standard deviation in the data (data only contains two columns, r and G(r)), the weight is 1.0. Is this correct?

Thanks very much in advance,

Inma

Pavol Juhas

unread,
Oct 16, 2014, 11:09:02 AM10/16/14
to diffpy...@googlegroups.com, peral...@gmail.com
Hi Inma,

Yes, that is correct. The Rw formula uses standard deviations as per

Rw = sqrt(A / B)
A = sum_i { [Gobs_i - Gcalc_i)/dG_i]**2 }
B = sum_i { [Gobs_i/dG_i]**2 }

[formula (A.49) in the old pdffit manual at
http://www.diffpy.org/doc/pdffit/pdf_man.pdf]

When dG values are not available in the data, they are all assumed 1.0.

Best,
Pavol

--
Dr. Pavol Juhas
Condensed Matter Physics and Materials Science Department
Brookhaven National Laboratory
P.O. Box 5000
Upton, NY 11973-5000

Inma Peral

unread,
Oct 17, 2014, 4:10:16 AM10/17/14
to diffpy...@googlegroups.com
Dear Pavol,

Thanks a lot!

Inma
On 10/16/2014 05:08 PM, Pavol Juhas wrote:
> Hi Inma,
>
> Yes, that is correct. The Rw formula uses standard deviations as per
>
> Rw = sqrt(A / B)
> A = sum_i { [Gobs_i - Gcalc_i)/dG_i]**2 }
> B = sum_i { [Gobs_i/dG_i]**2 }
>
> [formula (A.49) in the old pdffit manual at
> http://www.diffpy.org/doc/pdffit/pdf_man.pdf]
>
> When dG values are not available in the data, they are all assumed 1.0.
>
> Best,
> Pavol
>


--
Inma Peral Experiments Division
CELLS - ALBA
Carretera BP 1413, Km 3.3
08290 Cerdanyola del Valles, Barcelona (Spain)
Phone: 00 34 93 592 44 21/ Fax: 00 34 93 592 4301
e-mail: ipe...@cells.es

Reply all
Reply to author
Forward
0 new messages