On Wed, Jun 21, 2017 at 11:08:06AM -0700, ANUPAM KUMAR SINGH wrote:
...
> Sir, one more thing I want to know that what is the meaning of NaN and
> the value written in bracket in phase fraction for example:
>
> atoms cells mass
>
> Phase 1 :0.709432 (NaN) 513 (NaN) 0.709432 (NaN)
> Phase 2 :0.290568 (NaN) 487 (NaN) 0.290568 (NaN)
Hi Anupam,
The values in parentheses are estimated standard deviations (ESD)
on the fitted values. NaN stands for Not-a-Number and is a result
of some undefined math operation, for example, division by zero.
Getting NaN-s or excessively large values for your ESD-s means
there is some instability in your fit; this usually happens
if some of the fitted parameters have similar or
linearly-dependent effects on the simulation.
A simple example would be fitting both A, B in the
"A + B = 7" model.
> Phase 1 :0.826508 (5.3e+004)
Also note that ESD-s are correctly scaled only if your data
provide standard deviations for the observed G(r) curve.
Even if such dG values are absent, the ESD-s are usually
smaller or comparable to the associated results. Getting
ESD in the order of 1e4 suggests that something is
incorrect in the fit.
...
> And for two phase, could I refine the scale factor of data set and
> scale factor of phase? If I do, there will be total four scale
> factor for two phase.
PDFgui uses the same phase-scale factors for each dataset, so
that would be at most 3 scale factors. The data and phase scale
factors are multiplied in the PDF simulation so you need to make
sure to refine only as many as meaningful. The last email had
a bit of a typo in the formula, I think it should have read
G_total = dscale * (pscale_1 * G_1 + (1 - pscale_1) * G_2)
If you are getting troubles with pscale_1 converging to values
larger than 1 you can effectively setup the same fit by fixing
data-scale at 1 and fitting the 2 phase-scale factors instead:
G_total = pscale_1 * G_1 + pscale_2 * G_2
With this latter form, you can constrain pscale_1, pscale_2
as a square of some parameter (e.g., "@5 * @5") and thus prevent
them from reaching negative values.
If you have 2 datasets, the first form is physically more
descriptive. In such case you should refine dscale_1, pscale_1
and dscale_2. Note that fitting phase ratios for 2 datasets
works well only if both of those PDFs are of the same kind,
i.e., both are X-rays or both neutron PDFs.
For a mixed X-ray & PDF refinement the ratios of pscale_1,
pscale_2 should be different for each dataset, but this is
not supported in PDFgui. Such refinement can be correctly
done with DiffPy-CMI, as the phase scales there can be
different per each fitted dataset.
Hope this helps,
Pavol
--
Dr. Pavol Juhas
Computational Science Initiative
Brookhaven National Laboratory
P.O. Box 5000
Upton, NY 11973-5000