Description Usage Arguments Details Value References
do.fit
estimates the background using the Bayesian approach and Differential Evolution algorithm.
1 2 3 |
data |
an object of type |
bounds.lower, bounds.upper |
numerics specifying the lower and upper bounds for the fitted spline values. |
scale |
numeric vector which, if applicable, determines the bounds for the fitted scale parameter. The default value of |
knots.x |
numeric vector which, if not |
knots.n |
numeric, the number of knots. If |
analytical |
logical. If |
stdev |
logical, whether to calculate the uncertainty for the estimated background. Should be set to |
control |
list, the return value of |
p.bkg |
numeric, the probability that a single pixel contains "only" a background. |
save.to |
character, a filename for saving the results. |
If information on the low-r behavior of G(r) is provided, the global intensity scale and atomic displacement parameters can be fitted along with the positions of the knots, (set.Gr
). To fit normalization parameter set bounds in scale
for the desired values. To fit Atomic Displacement Parameters see set.SB
.
In most cases p.bkg
should be set to its default value 0.5.
For further details see BBEST-package
.
A list with elements:
x |
numeric vector of grid points |
curves |
list, see below. |
uncrt |
list, see below. |
knots |
list with elements |
pars |
numeric vector. If the background is approximated using the analytical function, contains all the relevant parameters |
scale |
fitted value of the |
ADP |
fitted values of the atomic displacement parameters, if applicable. |
fit.details |
list, see below. |
Element curves
is a list with sub-elements:
y |
numeric vector of the (normalized) function values. |
bkg |
numeric vector, the estimated background. |
SB |
numeric vector, the (fitted) coherent baseline. |
Element uncrt
is a list with sub-elements:
stdev |
numeric vector, indicates estimated standard deviations for the reconstructed signal. |
stdev.r |
numeric vector, indicates estimated standard deviations for a reconstructed signal in r-space. |
hess |
Hessian matrix for a ψ(c) function. |
cov.matrix |
covariance matrix, i.e. the inverse of the Hessian. |
cov.matrix.r |
covariance matrix in r-space. |
Element fit.details
is a list with sub-elements:
lambda |
numeric vector, the estimated mean magnitude of the signal. |
sigma |
numeric vector, the estimated Gaussian noise. |
knots.n |
the number of knots used in the fit. |
knots.x |
knot positions used in the fit. |
control |
see the |
Gr |
list contacting information on the low-r behaviour of G(r) . See |
n.atoms |
numeric vector, number of different atoms per unit cell. |
scatter.length |
numeric vector, atomic scattering factors. |
Ardia, D., Mullen, K., Peterson, B. & Ulrich, J. (2011): DEoptim. R Package Version 2.2-2. https://CRAN.R-project.org/package=DEoptim.
Mullen, K.M., Ardia, D., Gil, D., Windover, D., Cline, J. (2011): DEoptim: An R Package for Global Optimization by Differential Evolution. J. Stat. Softw., 40(6), 1-26. https://www.jstatsoft.org/article/view/v040i06.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.