SET CONSTANT Y-VALUE TO ALL X-POINTS

Replaces every Y value of the input curve with a single constant, while preserving all original X points. Use this worker to flatten a curve or create a constant baseline from an existing X-axis grid.

When to use

Classification: process.

Tagged: constant, curve, flatten, set_constant_y_value, transform, y-value.

Inputs

Label ID Type Default Required Description
Curve curve vector   Input curve (X/Y vector) whose Y values will be overwritten; all original X points are preserved in the output.
Constant Y-value y_value text 0   Scalar constant to assign to every Y point of the curve; defaults to 0 if left unset.

Outputs

Label ID Type Description
Curve with constant value curve_set_constant_value_y vector Output curve with the same X points as the input but with every Y value replaced by the specified constant.

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_set_constant_y_value


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