COMPUTE DIFFERENCE BETWEEN TWO CURVES

Computes the element-wise difference between two curves as Curve2 − Curve1 (i.e., “subtract Curve1 from Curve2”). Use this worker when you need the reverse subtraction order compared to a standard subtract operation.

When to use

Classification: process.

Tagged: curve, difference, math, subtract, subtract_from, transform.

Inputs

Label ID Type Default Required Description
Curve 2 curve1 vector   The curve to subtract (the subtrahend); a time–value or X–Y vector that will be taken away from Curve 2. Must share the same abscissa domain as Curve 2.
Curve 2 curve2 vector   The curve to subtract from (the minuend); a time–value or X–Y vector from which Curve 1 is subtracted, yielding Curve2 − Curve1.

Outputs

Label ID Type Description
curve_subtract_from_output curve_subtract_from_output vector Resulting difference curve (Curve2 − Curve1) as an X–Y vector defined over the common abscissa domain of the two inputs.

Disciplines

  • data.curve.pair

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_subtract_from


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