Learn R Programming

BBEST (version 0.1-8)

prepare.banks.data: Prepare data for estimating the background

Description

prepare.banks.data sets all the fit parameters, such as sigma, lambda and SB for a set of detector banks.

Usage

prepare.banks.data(data, n.banks=4, lambda_1, lambda_2, lambda_0, 
                   x_1, x_2, n.atoms, scatter.length, ADP, n.regions)

Arguments

data

list of objects of type data. See read.sqa and set.data for details.

n.banks

numeric, number of banks.

lambda_1, lambda_2, lambda_0, x_1, x_2

parameters to be passed to set.lambda.

n.atoms, scatter.length, ADP

parameters to be passed to set.SB.

n.regions

parameter to be passed to set.sigma.

Value

A list of objects of type data suitable for do.fit.banks.

Details

This function simplifies setting the fit parameters for a set of detector banks by a multiple call of set.sigma, set.SB, and set.lambda.

See Also

set.sigma, set.SB, set.lambda