Builds a feature matrix on the fixed 700-bin grid of Zacharias (2013): 300 bins covering 6.5-9.5 ppm + 400 bins covering 0.5-4.5 ppm, both at 0.01 ppm width. The water region (4.5-6.5 ppm) is excluded. Bins are ordered high-to-low — column 1 covers (9.49, 9.50) ppm, column 700 covers (0.50, 0.51) ppm.
Suitable as the feat_fun argument of fit_mdm().
Per-spectrum dispatch:
If
lcparis empty (raw spectra): bin$sidirectly.If
lcparis non-empty (deconvoluted / aligned spectra): reconstructsi_hat = lorentz_sup(cs, lcpar)on the spectrum's owncsgrid usingx0alwhen present (elsex0), then bin the reconstruction.
Always returns all 700 columns; maxCombine, igrs and peakPos
are accepted for feat_fun protocol compatibility but ignored
(the bin layout is hardcoded).
Usage
bin700(x, maxCombine = 0L, igrs = list(), peakPos = NULL, ...)