Qu

apply_calibration

Builtin index · Signal processing

apply_calibration(s, slope, [offset=0], [unit=])

Input: s, slope, offset, unit · Output: no output

What it is

Added in v0.2.4. The general linear calibration physical = slope*raw + offset that the two calibrate forms are specific instances of. unit= stamps the resulting physical unit (and picks up its conventional dB reference, enabling spl for pressure).

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
apply_calibration(s, slope, [offset=0], [unit=])
s —not documented yet
slope —The general linear calibration physical = slope*raw + offset that the two calibrate forms are specific instances of.
offset optional (default 0)The general linear calibration physical = slope*raw + offset that the two calibrate forms are specific instances of.
unit optionalunit= stamps the resulting physical unit (and picks up its conventional dB reference, enabling spl for pressure).
not documented yetAdded in v0.2.4.

Examples

No documentation example calls this form yet. The Signal processing chapter is where one belongs.

How it works

apply_calibration(s, slope, [offset=0], [unit=]) -- the general linear calibration §10 names, and the form both calibrate spellings below are specific instances of: physical = slope*raw + offset.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.