CREATE A CURVE BASED ON X-INTERVAL

Resamples an input curve by first digitizing it to a fixed number of points and then retaining only those points that fall on a regular x-axis interval. Use this worker to normalize or downsample a curve to a uniform x-spacing, optionally summarizing multiple y-values within each interval via average, max, or min aggregation.

When to use

Classification: process.

Tagged: curve, digitize, downsample, resample, x-interval, y-summation.

Inputs

Label ID Type Default Required Description
Curve 1 curve1 vector   Input curve (x-y vector) to be digitized and resampled; accepts any continuous curve — leave empty only if the curve is provided programmatically upstream.
Num Points num_dig integer 100   Total number of evenly-spaced points to digitize the input curve to before applying the x-interval filter; integer, default 100 — increase for higher initial resolution.
X-Interval x_interval integer 0.01   Step size along the x-axis at which output points are retained after digitization (e.g. 0.01 s or 0.01 mm depending on curve units); float, default 0.01 — smaller values produce denser output curves.
Y-Summation y_summation string none   Aggregation rule applied when multiple digitized points fall within the same x-interval bin: ‘none’ keeps the first point, ‘average’ averages y-values, ‘max’ takes the maximum, ‘min’ takes the minimum; default ‘none’.

Outputs

Label ID Type Description
curve_digitizex_output_1 curve_digitizex_output_1 vector Resampled output curve (x-y vector) containing only the points that survive the x-interval filter, with y-values aggregated according to the chosen y_summation rule.

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_digitize_based_on_x_interval


Auto-generated from transformation schema. Worker id: curve_digitize_based_on_x_interval. Schema hash: e6117c7e68ee. Hand-curated docs in workerexamples/ override this page when present.