SYNC LAST SLOPES OF ALL CURVES SO THEY ARE EQUAL

Adjusts the trailing slope of all input curves so they share a common last slope, using a configurable sync strategy (max, min, average, respective, or auto). Optionally uses linear regression over a tail percentage of points to estimate the slope more robustly. Use this worker to align diverging curve tails before further processing or comparison.

When to use

Classification: process.

Tagged: curves, extrapolation, regression, slope, sync, tail, transformations.

Inputs

Label ID Type Default Required Description
Curves In curves_in vector   Collection of input curves whose last slopes will be synchronized; accepts multiple curve objects (vector type).
Sync Type sync_type scalar max   Strategy used to determine the target common slope: ‘max’ uses the steepest slope, ‘min’ the shallowest, ‘respective’ keeps each curve’s own slope, ‘curve_average’ averages all slopes, and ‘auto’ selects automatically; defaults to ‘max’.
Use Regression use_regression scalar no   Whether to estimate the trailing slope via linear regression (‘yes’) over a tail fraction of points rather than using the raw last slope (‘no’); defaults to ‘no’.
Percentage Of Points To Use For Regression reg_per scalar 0.1   Fraction (0–1) of total curve points from the tail end to include in the regression fit when use_regression is ‘yes’; e.g. 0.1 uses the last 10% of points; defaults to 0.1.
Maximum X maxx scalar   Optional maximum X value to which all curves are extrapolated using the common synchronized slope; leave null to skip extrapolation.
Remove Intersection remove_intersection scalar no   Remove intersection after syncing

Outputs

Label ID Type Description
curves_sync_last_slope_output_1 curves_sync_last_slope_output_1 vector Collection of transformed curves with their trailing slopes synchronized according to the chosen strategy, and optionally extrapolated to the specified maximum X value.

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_sync_last_slope


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