REMOVE DISCONTINUITY IDENTIFIED BY X-POINT BEING FAR AWAY FROM THE PREVIOUS POINT AND CLIP AT THE LAST POINT

Scans a curve for discontinuities by detecting x-points that jump further than a specified ratio of the total x-range from the previous point, then clips (truncates) the curve at the last valid point before the discontinuity. Use this worker to clean up curves with spurious jumps or corrupt data points before further processing.

When to use

Classification: process.

Tagged: clean, clip, curve, discontinuity, ratio, remove, truncate, x-range.

Inputs

Label ID Type Default Required Description
Curve curve vector   The input curve (x-y vector) to be scanned and clipped; provide any curve that may contain discontinuous x-jumps — optional, pass null to skip processing.
X Range Ratio ratiowhencomparedwiththex-range scalar 0.1   Fraction of the total x-range used as the discontinuity threshold (dimensionless, default 0.1); any consecutive x-step larger than x_range × ratio is treated as a discontinuity and the curve is clipped at that point.

Outputs

Label ID Type Description
curve_remove_discontinuity_output_1 curve_remove_discontinuity_output_1 vector The cleaned output curve, truncated at the last valid point immediately before the first detected discontinuity; same x-y vector format as the input curve.

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_remove_discontinuity


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