do.fit.banks {BBEST} | R Documentation |
Estimate the background for individual banks
Description
do.fit
estimates the background for individual banks according to the Bayesian approach using the Differential Evolution algorithm
Usage
do.fit.banks(data, bounds.lower, bounds.upper, knots.n.left,
knots.n.right, x.boundary, analytical=FALSE, control,
save.to="")
Arguments
data |
an object of type |
bounds.lower , bounds.upper |
numerics, lower and upper bounds for the fitted spline values. |
knots.n.left , knots.n.right , x.boundary |
numerics that specify the number of knots. |
analytical |
logical. If |
control |
list, the return value of |
save.to |
character, a filename for saving the results. |
Details
This function simplifies the procedure for estimating the background for several detector banks by a multiple call of do.fit
. Other relevant parameters are set to: stdev=FALSE, scale=NA, p.bkg=.5
.
For neutron scattering, the incoherent background exhibits a broad peak at low Q and decays gradually at higher Q. Hence, we suggest to use different numbers of knots for the low- and high-Q regions. See BBEST-package
for details.
Value
A list of elements. Each element contains a return value of do.fit
for the corresponding data bank.