Set Uncertainty

Shipping
set_uncertainty

Attach, override, or clear a quantity's standard uncertainty (±σ)

Signature

Inputs

  • valueScalar|SignalrequiredThe quantity to receive the new uncertainty. Its numbers are untouched.
  • sigmaScalar|SignalThe uncertainty source, read only in **From σ input** mode. A Scalar applies uniformly; a Signal applies per-sample (length must match). If it carries a compatible unit it is converted into the value's unit first; incompatible units error. Negative values are taken as magnitudes.

Outputs

  • resultScalar|SignalSame shape and numbers as `value`, carrying the new σ² (or exact when cleared / zero).

Parameters

KeyTypeDefaultNotes
modeenumabsoluteone of: absolute, relative, from_input, clear
uncertaintyfloat0.0σ in the value's unit (Absolute mode) or in percent of each value (Relative mode). 0 keeps the data exact. Active only in Absolute / Relative modes.

Description

Set Uncertainty is the entry point for measured error bounds. A calibration sheet says "±0.5 %", a datasheet says "±2 mV", a noise-floor estimator produces a per-sample σ signal — this node turns any of those into the engine's variance contract (, with None meaning exact), from which the uncertainty kernel propagates through the rest of the graph.

The value's numbers are never touched; only its σ² is set. Four modes:

  • Absolute (±σ) — a constant σ in the value's own unit, applied uniformly. exact.
  • Relative (±%) per element, so the band scales with the signal. exact.
  • From σ input — σ comes from the sigma port, embodying the Captyse principle that parameters can be data. A Scalar σ applies uniformly; a Signal σ applies per-sample (lengths must match). If the σ carrier has its own compatible unit it is converted into the value's unit first ( value, σ ); incompatible units error. Only the scale ratio is used — an offset is meaningless for a spread (ADR-002). Negative σ values are taken as magnitudes.
  • Clear (exact) — drop uncertainty entirely, back to exact.

A per-sample σ Signal can only attach to a Signal value — feeding one to a Scalar value errors (use a Scalar σ instead). Any non-finite or non-positive σ collapses to exact.

Mathematics

Examples

Constant absolute σ

absolute mode, uncertainty = 0.5 on a signal [1, 2] yields uniform , i.e. .

Relative percentage band

relative mode, uncertainty = 10 on [1, -2] V gives () — the band scales with each value's magnitude.

σ from a differently-unitted input

from_input mode: a value with a Scalar σ of is unit-converted to , so . A σ against a value errors (incompatible dimensions).

Per-sample noise floor

from_input with a σ Signal [0.1, 0.2] against value [1, 2] gives . Lengths must match, otherwise it errors.

Clearing to exact

clear mode drops any existing σ, returning the value as exact (variance None).

Applications

  • Stamping a datasheet or calibration tolerance (±σ or ±%) onto acquired data so uncertainty propagates through all downstream math.
  • Driving per-sample uncertainty from a measured noise-floor estimate wired into the σ port.
  • Converting a manufacturer's spec expressed in a different unit (mV) onto a value in another (V) without manual rescaling.
  • Clearing accumulated uncertainty to treat a signal as exact for a section of the graph.

Neat

Parameters can be data: the **From σ input** mode reads the uncertainty from a wire, so a live noise estimator can set the error band sample-by-sample.

The σ carrier's unit is reconciled by scale ratio only — offsets are deliberately ignored because a spread has no origin (ADR-002), so a 200 mV σ becomes 0.2 V cleanly.

Relative mode ties the band to |value|, which naturally produces a proportional confidence envelope on plots without any per-sample bookkeeping.

Known issues

A per-sample σ Signal cannot be attached to a Scalar value — feed a Scalar σ instead, or the node errors.

In From σ input mode the σ Signal length must exactly match the value Signal length; a mismatch is an error.

Any non-finite or non-positive resulting σ collapses to exact (variance cleared) rather than being stored.

See also

uncertaintysigmavarianceerror-barscalibrationdata-as-parameterstateless