FIT THE CURVE USING ANY REGION NEAR THE INITIAL POINT TO SMOOTH THE INITIAL CURVE

Fits a polynomial to the initial region of a curve to smooth out noise or artefacts near the curve’s starting point. The best-fit polynomial of the specified order is applied over the region around the first data point, replacing the raw values with a smooth approximation. Use this worker when a curve has noisy or unphysical behaviour at its start that needs to be corrected before further processing.

When to use

Classification: process.

Tagged: best_fit, curve, curve_transform, polynomial, smoothing, start_region.

Inputs

Label ID Type Default Required Description
Curve curve vector   Input curve (X/Y vector) whose initial region is to be smoothed via polynomial best-fit; must be provided as a d3VIEW curve object.
Order order scalar 3   Polynomial order used for the best-fit (e.g. 3 for cubic); default is 3 — increase for more flexible fits, decrease to enforce stricter smoothness.
Start Value start_value scalar 0   Optional override for the x-coordinate of the start of the fitting region; if left at default (0) the curve’s own first x-value is used as the anchor point.

Outputs

Label ID Type Description
Best fit Curve curve_o_1 vector Output curve with the initial region replaced by the polynomial best-fit, leaving the remainder of the curve unchanged.

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_smooth_start_using_best_fit


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