XPSbaseline: XPSbaseline Baseline definition for XPSCoreLine object.

XPSbaselineR Documentation

XPSbaseline Baseline definition for XPSCoreLine object.

Description

Calculates the baseline for XPSCoreLine. There is a list of baseline shapes implemented: linear, polynomial, spline, Shirley, 2P.Shirley, 3P.Shirley, LP.Shirley, 2P.Tougaard, 3p.Tougaard, 4P.Tougaard. Selection of the appropriate baseline have to be made upon spectral-data properties.

Usage

XPSbaseline(
  object,
  bgtype = c("linear", "shirley", "polynomial", "spline"),
  deg = NULL,
  Wgt = NULL,
  splinePoints = list(x = NULL, y = NULL),
  ...
)

Arguments

object

XPSCoreLine object

bgtype

the baseline type. For example linear type "2P.Tougaard".

deg

degree of the polynomial background

Wgt

LinearPolynomial weigth in LPShirley, required parma in 3P. 4P.Tougaard

splinePoints

numeric vector containing the points which will be connected by the spline

...

other parameters.

Value

The Object slot Baseline will be filled with the selected Bsseline and it will be displyed. The baseline function returns an object of class baseline. The x is the same as RegionToFit x coord. The y coord are the baseline values.


GSperanza/RxpsG_2.3-1 documentation built on Feb. 11, 2024, 5:09 p.m.