Applies a calibration formula to one raw sample value, with the same arithmetic as
the Rust CalibrationSpec::apply that fills the exported calibrated_value column.
Non-finite input is not special-cased, again as in Rust: NaN stays NaN through
identity, linear and non-empty polynomial formulas, while an empty polynomial gives
-0 for any input. The spec is used as given; pass it through
normalizeCalibration first if it may be incomplete.
Applies a calibration formula to one raw sample value, with the same arithmetic as the Rust
CalibrationSpec::applythat fills the exportedcalibrated_valuecolumn.Non-finite input is not special-cased, again as in Rust:
NaNstaysNaNthrough identity, linear and non-empty polynomial formulas, while an empty polynomial gives -0 for any input. The spec is used as given; pass it through normalizeCalibration first if it may be incomplete.