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

Resamples a curve into a fixed number of equidistant intervals using linear interpolation, then reduces each bin to a representative value (average, min, max, slope, integral, etc.). Use this worker to normalise curves to a common x-axis grid before comparison or further analysis.

When to use

Classification: process.

Tagged: binning, curve, downsampling, equidistant, linear_interpolation, resampling.

Inputs

Label ID Type Default Required Description
Curve to be binned curve1 vector   Input curve (x/y vector pair) to be binned; must be a valid curve object — leave empty only if the curve is supplied upstream in the workflow.
Num of Intervals num_points integer 100   Number of equidistant intervals to divide the curve’s x-range into; defaults to 100. Note: this controls interval count, not point count.
Bin Prefix prefix texgt CBIN   Short string prefix applied to the binned output labels (e.g. ‘CBIN’); defaults to ‘CBIN’ and can usually be left at the default unless naming conflicts exist.
Type of Bin Value type string avg   Aggregation method applied within each bin: ‘avg’ (mean), ‘min’, ‘max’, ‘diff’ (difference), ‘slope’, ‘integral’, ‘current’ (last point), or ‘previous’ (first point); defaults to ‘avg’.

Outputs

Label ID Type Description
Binned Dataset binned_values dataset Dataset containing the resampled curve with one row per bin, where each row holds the bin’s representative x-midpoint and the aggregated y-value computed by the selected bin type.

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_binning


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