FitPeakToGaussian: FitpeakToGaussian

Description Usage Arguments Value Examples

View source: R/FitPeakToGaussian.R

Description

Using the output from EstimateGaussianParameters, do a nonlinear fit to a Gaussian model

Usage

1
2
3
4
5
6
7
8
9
FitPeakToGaussian(
  x,
  y,
  centroid,
  doPlot = TRUE,
  pTitle = "Peak",
  xTitle = "x",
  yTitle = "y"
)

Arguments

x

vector with the massess

y

vector with the intensity

centroid

mean of the peak

doPlot

- A boolean (default FALSE) to plot the data, estimate, and the fit.

pTitle

- An optional plot title

xTitle

- An optional X-axis label

yTitle

- An optional Y-axis label

Value

sum - A summary of the fit

Examples

1
# Not run

ManuelPerisDiaz/CysMpro documentation built on Oct. 18, 2020, 6:44 a.m.