COMPUTE THE Y-DIFFERENCE COMPARED TO THE PREVIOUS POINT¶
Computes the point-to-point y-difference for each sample in a curve, replacing each y-value with the difference relative to its immediately preceding point. Use this worker to convert a cumulative or absolute y-signal into a delta (incremental change) series.
When to use¶
Classification: process.
Tagged: curve, delta, difference, incremental, transform, y-diff.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve In | curve_in | vector | — | Input curve (x/y vector) whose y-values will be differenced; each output y-value becomes y[i] − y[i−1]. Leave the x-range defaults (xmin/xmax) to process the full curve. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_add_output_1 | curve_add_output_1 | vector | Output curve with the same x-values as the input but y-values replaced by the successive y-differences (delta series); the first point is typically zero or the original first value depending on convention. |
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_add_difference
Auto-generated from transformation schema. Worker id: curve_add_difference. Schema hash: a49f3ce8a915. Hand-curated docs in workerexamples/ override this page when present.