.. _auto_math_offset_scale: *OFFSET A VALUE THEN SCALE IT * =============================== Applies a linear offset-then-scale transformation to a scalar value, computing `(value + offset) * scale`. Use this worker whenever a raw scalar needs to be shifted and/or re-scaled before passing it downstream in a workflow. When to use ----------- Classification: **process**. Tagged: ``linear_transform``, ``math``, ``offset``, ``process``, ``scalar``, ``scale``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Data To Be Scaled And Offset - datatobescaledandoffset - scalar - — - - The raw scalar value to transform; dimensionless or any unit — the offset and scale must be consistent with this value's units. * - Scale - scale - float - 1.0 - - Multiplicative scale factor applied after the offset; dimensionless float, default 1.0 (no scaling). * - Offset - offset - float - 0.0 - - Additive offset added to the input value before scaling; must share the same units as the input, default 0.0 (no offset). Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - math_offset_scale_output_1 - math_offset_scale_output_1 - scalar - Transformed scalar result of (input + offset) × scale; inherits the units of the scaled 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_offset_scale `_ .. raw:: html

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