COMPUTED THE WEIGHTED VALUE FOR GIVEN TWO VALUES¶
Computes a weighted combination of two scalar values using the formula: weight × v1 + (1 − weight) × v2. Use this worker whenever you need a linear interpolation or blending between two quantities with a single weight parameter.
When to use¶
Classification: process.
Tagged: blending, linear_interpolation, math, scalar, transform, weighted.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| data 1 to be weighted | data1tobeweighted | scalar | — | First scalar value (v1) to be weighted; dimensionless or in the same units as data2tobeweighted — receives the weight factor directly (weight × v1). | |
| data 2 to be weighted | data2tobeweighted | scalar | — | Second scalar value (v2) to be weighted; dimensionless or in the same units as data1tobeweighted — receives the complementary factor ((1 − weight) × v2). | |
| weight | weight | scalar | — | Blending weight in the range [0, 1]; a value of 1.0 returns v1 entirely, 0.0 returns v2 entirely, and 0.5 gives an equal average of both. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| math_weighted_2_output_1 | math_weighted_2_output_1 | scalar | Resulting weighted scalar: weight × v1 + (1 − weight) × v2, in the same units as the two input values. |
Disciplines¶
- data.curve.transform
- data.statistics
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=math_weighted_2
Auto-generated from transformation schema. Worker id: math_weighted_2. Schema hash: 025badf09650. Hand-curated docs in workerexamples/ override this page when present.