SCALE A VALUE THEN OFFSET IT

Applies a linear scale-then-offset transformation to a single scalar value, returning (value × scale) + offset. Use this worker whenever a dimensionless rescaling or unit-shift is needed on a scalar quantity within a workflow.

When to use

Classification: process.

Tagged: linear_transform, math, offset, scalar, scale, scale_offset.

Inputs

Label ID Type Default Required Description
Value datatobescaledandoffset scalar   The scalar value to be transformed; connect the upstream output that needs rescaling or shifting.
Scale scale float 1.0   Multiplicative scale factor applied to the input value before the offset; dimensionless float, defaults to 1.0 (no scaling).
Offset offset float 0.0   Additive offset applied after scaling; must carry the same units as the scaled value, defaults to 0.0 (no shift).

Outputs

Label ID Type Description
math_scale_offset_output_1 math_scale_offset_output_1 scalar Resulting scalar after the linear transformation (value × scale) + offset, in the same units as the offset input.

Disciplines

  • data.curve.transform
  • data.units

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=math_scale_offset


Auto-generated from transformation schema. Worker id: math_scale_offset. Schema hash: e7fbc404383c. Hand-curated docs in workerexamples/ override this page when present.