dot-freeze_trim_steps: Freeze data-dependent constant-edge trim steps into a fixed...

.freeze_trim_stepsR Documentation

Freeze data-dependent constant-edge trim steps into a fixed wavelength/wavenumber band

Description

Records, on each prep_wav_trim step using trim_constant_edges = TRUE, the exact wavelengths or wavenumbers retained on the training data (resolved_wavs) so .exec_wav_trim reapplies them deterministically to newdata instead of re-deriving the trimming from its own values.

Usage

.freeze_trim_steps(recipe, processed_wavs)

Arguments

recipe

A preprocess_recipe object.

processed_wavs

A processed_wavs object holding the wavelengths or wavenumbers retained after each step (from the "processed_wavs" attribute of process).

Value

The recipe with resolved_wavs set on each fitted step.


proximetricsR documentation built on Sept. 4, 2026, 5:08 p.m.