baseline_lambda() controls the smoothness penalty in ALS baseline correction.
baseline_asymmetry() controls the asymmetry parameter in ALS.
baseline_degree() controls the polynomial degree for baseline fitting.
Usage
baseline_lambda(range = c(2, 9), trans = scales::transform_log10())
baseline_asymmetry(range = c(0.001, 0.1), trans = NULL)
baseline_degree(range = c(1L, 6L), trans = NULL)
baseline_half_window(range = c(5L, 100L), trans = NULL)
baseline_span(range = c(0.1, 0.9), trans = NULL)
baseline_alpha(range = c(0, 1), trans = NULL)
baseline_window(range = c(10L, 200L), trans = NULL)Arguments
- range
A two-element vector holding the defaults for the smallest and largest possible values, respectively. If a transformation is specified, these values should be in the transformed units.
- trans
A
transobject from thescalespackage, such asscales::transform_log10()orscales::transform_reciprocal(). If not provided, the default is used which matches the units used inrange. If no transformation,NULL.
Examples
baseline_lambda()
#> Baseline Smoothness (lambda) (quantitative)
#> Transformer: log-10 [1e-100, Inf]
#> Range (transformed scale): [2, 9]
baseline_asymmetry()
#> Baseline Asymmetry (p) (quantitative)
#> Range: [0.001, 0.1]
baseline_degree()
#> Baseline Polynomial Degree (quantitative)
#> Range: [1, 6]
baseline_span()
#> LOESS Span (quantitative)
#> Range: [0.1, 0.9]