These hyperSpec functions are deprecated and not maintained any more. You should not use these. Currently they are present due to back-compatibility reasons and will be removed in the next release of the package. Please, use the suggested alternative functions instead.

_____________

These functions fit polynomial baselines.

spc.fit.poly(...)

spc.fit.poly.below(...)

Arguments

...

handed to spc_fit_poly_below()

Value

hyperSpec object containing the baselines in the spectra matrix, either as polynomial coefficients or as polynomials evaluted on the spectral range of apply.to

Details

Both functions fit polynomials to be used as baselines. If apply.to is NULL, a hyperSpec object with the polynomial coefficients is returned, otherwise the polynomials are evaluated on the spectral range of apply.to.

spc.fit.poly() calculates the least squares fit of order poly.order to the complete spectra given in fit.to. Thus fit.to needs to be cut appropriately.

spc.fit.poly.below() tries to fit the baseline on appropriate spectral ranges of the spectra in fit.to. For details, see the vignette("baseline").

Author

C. Beleites