Skip to content

Commit

Permalink
add in manual baseline parameters to description.
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Jul 25, 2023
1 parent c8c383f commit 773afe7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/subtr_bg.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' @description
#' This baseline correction routine iteratively finds the baseline of a spectrum
#' using a polynomial fitting.
#' using a polynomial fitting or accepts a manual baseline.
#'
#' @details
#' This is a translation of Michael Stephen Chen's MATLAB code written for the
Expand All @@ -12,6 +12,10 @@
#' @param degree the degree of the polynomial. Must be less than the number of
#' unique points when raw is \code{FALSE}. Typically a good fit can be
#' found with a 8th order polynomial.
#' @param wavenumber_fit manually specified wavenumbers for the baseline.
#' @param intensity_fit manually specified intensity values for the baseline.
#' @param type one of "Polynomial" or "Manual" depending on whether you want spectra to be corrected with
#' a manual baseline or with polynomial baseline fitting.
#' @param raw if \code{TRUE}, use raw and not orthogonal polynomials.
#' @param make_rel logical; if \code{TRUE} spectra are automatically normalized
#' with \code{\link{make_rel}()}.
Expand Down
9 changes: 8 additions & 1 deletion man/subtr_bg.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 773afe7

Please sign in to comment.