EXTRAPOLATE THE CURVES WITH A CONSTANT VALUE

Extends one or more curves beyond their last data point by appending a constant value, effectively holding the final Y value (or a user-specified constant) out to a specified X endpoint. Use this worker when downstream analysis requires curves to share a common X range or when a flat extrapolation assumption is appropriate.

When to use

Classification: process.

Tagged: constant, curve, extend, extrapolate, flat, hold_last, transformations.

Inputs

Label ID Type Default Required Description
Curves curves vector   One or more input curves (X-Y pairs) to be extrapolated; accepts multiple curve objects in d3VIEW curve format.
Last X-Value x_last scalar 1   The X-axis value up to which each curve will be extrapolated; defaults to 1 — set this to the desired end of the extended X range (same units as the curve’s X axis).
Last Y-Value y_last scalar 1   The constant Y value used for the extrapolated segment; defaults to 1 — override with the flat level to hold beyond the curve’s last original data point (same units as the curve’s Y axis).

Outputs

Label ID Type Description
curves_extrapolate_constant_output_1 curves_extrapolate_constant_output_1 vector The input curves with each one extended to x_last using the constant y_last value, returned as a vector of X-Y curve objects in the same format as the inputs.

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=curves_extrapolate_constant


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