XPSmodFit: XPSmodFit performs the fit of a Core Line

View source: R/XPSModFitGUI.r

XPSmodFitR Documentation

XPSmodFit performs the fit of a Core Line

Description

Provides a userfriendly interface to select a fitting algorithms to fit an XPSCoreline. Fitting algorithms are: (I) Classic algorithms: Levenberg-Marquardt, Newton and Port based on the minimization of the Squares of the Differences and handled in a more robust way (although slower) compared to (nlsLM) function. (II) Conjugate-Gradient Algorithms: General-purpose optimization based on Nelder-Mead, quasi-Newton and conjugate-gradient algorithms. (III) Pseudo Algorithms: random based algorithm (rather slow) but ensure the convergence.

Usage

XPSmodFit(Object, plt = TRUE, ...)

Arguments

Object

XPSCoreLine object

plt

logical, to enable plot XPSCoreLine and fit. By default is set to TRUE

...

further parameters to the fitting function

Value

The Object slot XPSmodFit will be filled with the result of the calculation. All the values of the components will be update and the result will be displyed.

See Also

nlsLM

Examples

## Not run: 
	SampData[["C1s"]] <- XPSmodFit(SampData[["C1s"]])

## End(Not run)

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