The function sets key parameters necessary for the fit, such as sigma
, lambda
and SB
set.data(x, y, sigma=NA, lambda=NA, SB=NA)
numeric vector, specifies grid points.
numeric vector, specifies function values.
numeric vector, if not NA
, specifies estimated noise.
numeric vector, if not NA
, specifies estimated mean signal magnitude.
numeric vector, if not NA
, specifies estimated coherent baseline.
A list with elements
numeric vector, specifies gridpoints.
numeric vector, specifies function values.
numeric vector, specifies estimated noise.
numeric vector, specifies estimated mean signal magnitude.
numeric vector, specifies estimated coherent baseline.
One way (not the simplest) to prepare experimental data for the fit. This function returns a list of the above parameters -- an object of type data
. Objects of that type are used as arguments for some functions implemented in the package. In most cases only the elements x
and y
are required in the object data
. However, all 5 elements (and one optional, see set.Gr
) must be specified to execute the fit, i.e. prior to the do.fit
call.
The object of that type can also be created via read.data
, read.sqa
and read.sqb
. Parameters "sigma", "lamdba" and "SB" can be determined automatically, see set data
keyword.
The general recipe for setting an object data
is the following. If vectors x
and y
are stored in the text file, use read.data
. If they are stored in a .sqb
-file, call read.sqb
. If they are stored in the memory, use set.data
. Then use functions set.sigma
, set.lambda
, and set.SB
) to specify the remaining parameters.