ADD POINTS BY EXTRAPOLATING USING THE LAST AVAILABLE SLOPE TO SPECIFIED X-VALUE¶
Extends a curve beyond its existing data range by extrapolating from the last available slope (or fit) to a specified x-value. Supports multiple extrapolation strategies including linear, hyperbolic, exponential, polynomial (orders 1–5 and best-fit), logistic, logarithmic, constant, zero-fill, and piecewise linear segments. Use this worker when a curve must be padded or extended before downstream processing such as material calibration or signal alignment.
When to use¶
Classification: process.
Tagged: curve, exponential, extend, extrapolate, hyperbolic, linear, logarithmic, logistic.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve To Be Extrapolated | curvestobeextrapolated | vector | — | The input curve (x-y vector) to be extended; accepts any numeric x-y pair series — leave unconnected only if the worker is being tested in isolation. | |
| Extrapolation Type | extrapolationtype | scalar | linear | Algorithm used to extrapolate beyond the last data point; options include linear, linear_avg (averaged last slopes), hyperbolic, exponential, polynomial orders 1–5, polynomial_best_fit, logistic, logarithmic, constant, zero, and linear_segments — defaults to ‘linear’. | |
| X Start | x_start | scalar | 0.0 | X-axis value from which the extrapolated segment begins; set to the last known x-value of the input curve to extend only forward, or to an earlier value to also fill backward — defaults to 0.0. | |
| X End | x_end | scalar | 0.0 | X-axis value at which the extrapolated curve terminates; must be greater than x_start for a valid extension — defaults to 0.0 (no extension). | |
| Number Of Points Between X Start And End | numberof_pointsbetween_x_startand_end | scalar | 10 | Number of points between X start and X End | |
| Ymax For Logistic Only | ymaxforlogisticonly | scalar | 0.0 | Values greater than this will be capped | |
| Flipxaxis | flipxaxis | scalar | no | Flip the curve X and Y values. Useful to convert compression data before extrapolating | |
| Value Type | value_type | scalar | absolute | Specifies the type of X. Options include real or percentage | |
| Scale Factor | scale_factor | scalar | 1.0 | This is applied after the extrapoltion is performed | |
| Percentage Of Points | per_points | scalar | 0.2 | Percentage of points to use for Polynomial extrapolation | |
| Number Of Segments | extra_segs | scalar | 1 | Used when type=linear_segments | |
| Extrapolation Slope Scale-factor | slope_sf | scalar | 1 | Used when type=linear_segments | |
| Extrapolation Slope | extra_slope | scalar | 0 | Used when type=linear_segments |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_extrapolate_output_1 | curve_extrapolate_output_1 | vector | The extrapolated curve as an x-y vector, containing the original data points plus the newly appended points generated by the selected extrapolation method up to x_end. |
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_extrapolate
Auto-generated from transformation schema. Worker id: curve_extrapolate. Schema hash: 03174bed8b87. Hand-curated docs in workerexamples/ override this page when present.