SUBTRACT A VALUE FROM ALL POINTS OF A CURVE¶
Subtracts a constant scalar value from every point of a curve (default axis: Y). Use this worker to apply a uniform offset removal or baseline shift to any time-history or XY curve.
When to use¶
Classification: process.
Tagged: baseline_shift, curve, offset, scalar, scalar_subtract, transform.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve To Be Subtracted | curvetobesubtracted | vector | — | Input XY curve (vector) whose values will be reduced by the scalar; accepts any time-history or XY curve — leave unconnected to test with a constant only. | |
| X Scale | value | float | 0.0 | Scalar float to subtract from each Y-axis point of the curve (default 0.0 = no change); provide a non-zero value to apply a uniform baseline or offset correction. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_scalar_subtract_output_1 | curve_scalar_subtract_output_1 | vector | Resulting curve (vector) after the scalar has been subtracted from every point; same X values as the input, Y values shifted downward by the specified amount. |
Disciplines¶
- data.curve.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_scalar_subtract
Auto-generated from transformation schema. Worker id: curve_scalar_subtract. Schema hash: bd6d92da6994. Hand-curated docs in workerexamples/ override this page when present.