Calibration options specify a polynomial applied to the input to produce a calibrated output. The most common usages are conversions from raw values (e.g. voltages) to logical physical units and the correct for sensor specific anomalies. The calibration is specified as a list of numeric coefficients in ascending power order, starting from the constant (x0). Each coefficient is a base ten decimal number with an optional fractional part. Additionally, leading zeros are ignored and numbers can be specified in scientific notation using 'e' syntax.

Coefficients are are delimited using , or ; or : with empty fields interpreted as zeros.

Identity
--switch=0,1
--switch=:1.0
Third order polynomial
--switch=0,1,2
--switch=-1E1:-2:0.5

Depending on the context the polynomial may also be replaced with just a constant. This means that the result is always a constant value, regardless of what the input value is.

Constant polynomial
--switch=0.5

Additionally some contexts accept invalid (empty) polynomials. The result of an invalid polynomial is always an undefined value. This is used to specify that the result is never a valid number.

Invalid polynomial
--switch=
--switch