GET A CUSTOM VALUE BASED ON CURVE VALUES

Applies a user-defined mathematical map function to every value in an input curve, returning a transformed curve. Use it to clamp, scale, or otherwise remap curve data with custom expressions such as MAX(X,1) or X*2+offset.

When to use

Classification: process.

Tagged: curve_map, curve_transform, custom_map, expression, map_function, remap.

Inputs

Label ID Type Default Required Description
Curve curve vector True   Input curve (vector of X/Y pairs) to which the map function will be applied; accepts multiple curves (definedMany=1); leave unconnected only if curve data will be provided by another means.
Map Function map_function text   Mathematical expression string applied element-wise to each curve value, where X represents the current value (e.g. MAX(X,1) clamps values below 1); leave empty to pass the curve through unchanged.

Outputs

Label ID Type Description
curve_map_output_1 curve_map_output_1 vector Resulting curve (vector) after the map function has been applied element-wise to every value of 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_map


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