bucket_optimized: Performs optimized bucketting

Description Usage Arguments Details Value References Examples

View source: R/bucket_optimized.R

Description

Bucket a collection of spectra using the Optimized Bucketting Algorithm

Usage

1
2
3
4
bucket_optimized(x, ...)

## S3 method for class 'collection'
bucket_optimized(x, initial_width, slackness, skip = FALSE, ...)

Arguments

x

Acollection object

...

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.

Details

The Optimized Bucketting Algorithm optimizes bucket size by searching local minima in the average spectrum.

Value

An updated version of collection.

References

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

Examples

1
2
3
library(tidySpectR)

bucket_optimized(fa_nmr, initial_width = 0.1, slackness = 0.2)

CVUA-RRW/tidySpectR documentation built on April 13, 2021, 11:41 a.m.