GET SHIFT OFFSET BETWEEN TWO CURVES¶
Computes the shift (X-axis offset) required to best align two curves by minimising their distance. Use this worker when you need to quantify how far one curve must be translated along the X-axis to match a reference curve.
When to use¶
Classification: process.
Tagged: curve_alignment, curve_matching, offset, shift, synchronisation, x_shift.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve 1 | curve1 | vector | — | Reference curve (X/Y vector pairs) against which the shift is measured; accepts multiple curves — the first entry is used as the reference. | |
| Curve 2 | curve2 | vector | — | Target curve (X/Y vector pairs) to be shifted relative to Curve 1; the worker finds the X offset that best aligns this curve to the reference. | |
| Num Points | dig_points | integer | 100 | Number of evenly spaced interpolation points used when resampling both curves before alignment; default is 100 — increase for higher-resolution matching on densely sampled signals. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curves_get_shift_offset_output_1 | curves_get_shift_offset_output_1 | vector | Single-value or curve vector containing the computed X-axis shift offset that aligns Curve 2 to Curve 1; units match the X-axis units of the input curves. |
Disciplines¶
- data.curve.pair
- 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=curves_get_shift_offset
Auto-generated from transformation schema. Worker id: curves_get_shift_offset. Schema hash: 9144c0a698d9. Hand-curated docs in workerexamples/ override this page when present.