Description Usage Arguments Details Value References Examples
View source: R/bucket_optimized.R
Bucket a collection of spectra using the Optimized Bucketting Algorithm
1 2 3 4 | bucket_optimized(x, ...)
## S3 method for class 'collection'
bucket_optimized(x, initial_width, slackness, skip = FALSE, ...)
|
x |
A |
... |
further arguments passed to or from other methods(not currenctly used). |
initial_width |
Initial bin width to optimize |
slackness |
fraction of initial width that defines how far the boundary can move while searching for a local minimum |
skip |
Skip the creation of of processor step. If TRUE, this step will not be added to the list of processing steps. Typically reserved for nested function calls. |
The Optimized Bucketting Algorithm optimizes bucket size by searching local minima in the average spectrum.
An updated version of collection
.
Sousa SAA, Magalhaes A, Ferreira MMC. Optimized bucketing for NMR spectra: Three case studies. Chemometr Intell Lab. 2013;122:93–102. https://doi.org/10.1016/j.chemolab.2013.01.006 https://doi.org/10.1016/j.chemolab.2013.01.006
1 2 3 | library(tidySpectR)
bucket_optimized(fa_nmr, initial_width = 0.1, slackness = 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.