COMPUTE THE DIFFERENCE BETWEEN TWO YFIRST AND YAST VALUES¶
Computes the difference between the Y value at the first X point and the Y value at the last X point within a specified X range on a curve. Use this worker to quickly extract the net Y change (ΔY) across a bounded interval of any time-history or XY curve.
When to use¶
Classification: process.
Tagged: curve, delta, difference, range, scalar, transform, y_first, y_last.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve In | curve_in | vector | — | Input XY curve (vector) on which the Y difference will be computed; must contain at least two data points within the specified X range. | |
| X Min | x_min | float | 0.0 | Lower bound of the X range (float, same units as the curve’s X axis); data points with X values below this threshold are excluded — defaults to 0.0, which processes from the curve’s start. | |
| X Max | x_max | float | 0.0 | Upper bound of the X range (float, same units as the curve’s X axis); data points with X values above this threshold are excluded — defaults to 0.0, which should be set to the desired end of the interval. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_difference_between_output_1 | curve_difference_between_output_1 | scalar | Scalar ΔY value representing the difference between the Y value at the last X point and the Y value at the first X point within the specified [x_min, x_max] window, in the same units as the curve’s Y axis. |
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_difference_between
Auto-generated from transformation schema. Worker id: curve_difference_between. Schema hash: 99688d94fb89. Hand-curated docs in workerexamples/ override this page when present.