CREATE A NEW CURVE BY LINEAR INTERPOLATION TO REACH A MAXIMUM OF NUM_POINTS SPECIFIED BELOW

Resamples an input curve by linear interpolation, producing a new curve with a specified number of equidistant intervals between the first and last point. Optionally supports a mid-point split (equal intervals on both sides of a reference x-value) and RDP (Ramer–Douglas–Peucker) smoothing to reduce noise after resampling. Use this worker to normalise curve resolution before comparing, plotting, or feeding curves into downstream ML or correlation workers.

When to use

Classification: process.

Tagged: curve_resampling, digitize, equidistant, interpolation, linear_interpolation, num_points, ramer_douglas_peucker, rdp.

Inputs

Label ID Type Default Required Description
Curve 1 curve1 vector   Input XY curve (vector) to be resampled; accepts any time-history or force-displacement curve — leave empty only if the curve is supplied by an upstream connection.
Num of Intervals num_points integer 100   Number of equidistant intervals to create between the first and last x-value of the curve (i.e. the resampled curve will have num_points + 1 data points); defaults to 100.
Mid Point mid_point integer 0.0   X-axis reference value at which the interval grid is split, creating an equal number of intervals on each side of that value; set to 0 (default) to disable the mid-point split.
Add RDP Smoothing add_rdp string no   Whether to apply Ramer–Douglas–Peucker (RDP) smoothing to the resampled curve after interpolation; select ‘yes’ to enable, ‘no’ (default) to skip.
Rdp Espsilon rdp_espsilon integer 1.0   Epsilon tolerance for the RDP smoothing algorithm — larger values remove more points and produce a coarser curve; only used when Add RDP Smoothing is ‘yes’; defaults to 1.0.

Outputs

Label ID Type Description
curve_digitize_output_1 curve_digitize_output_1 vector Resampled XY curve (vector) containing the linearly interpolated points at equidistant x-intervals, optionally smoothed via RDP.

Disciplines

  • data.curve.transform
  • data.signal_processing

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_digitize


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