Skip to contents

Uses a user supplied function, possibly that supplied by a manufacturer like Ocean Optics stored in firmware or in any other form.

Usage

set_descriptor_nl(descriptor, nl.coeff = NA_real_, nl.fun = NULL)

Arguments

descriptor

list as returned by function get_oo_descriptor

nl.coeff

numeric vector, if nl.fun is missing, assumed to be a polynomial.

nl.fun

A function or a polynom::polynomial object containing the linearization to be applied.

Value

A copy of the argument passed for oo_descriptor with the wavelengths field of the calibration data replaced by the new values.