COMPUTE THE DIFFERENCE DIFF NORMALIZED TO THE FIRST CURVE AND RETURN IN PERCENTAGE¶
Computes the normalized difference between two curves, subtracting the second curve’s values from the first and normalizing the result to the first curve, returning the output as a percentage. Use this worker when you need a relative (percentage) deviation between two curves rather than an absolute difference.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve From Which The Values Are To Be Subtracted | curvefromwhichthevaluesaretobesubtracted | vector | — | The reference (base) curve from which values are subtracted and against which the normalization is applied; supply as a vector/curve object — this acts as the denominator in the normalization. | |
| Curve Whose Values Will Be Used To Subrtract | curvewhosevalueswillbeusedtosubrtract | vector | — | The curve whose y-values are subtracted from the reference curve (Curve 1); supply as a vector/curve object of matching length or x-domain. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curves_normalized_difference_output_1 | curves_normalized_difference_output_1 | vector | Resulting curve representing the normalized difference, expressed as a percentage: ((Curve1 − Curve2) / Curve1) × 100, with the same x-axis domain as the input curves. |
Disciplines¶
- data.curve.pair
- 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=curves_normalized_difference
Auto-generated from transformation schema. Worker id: curves_normalized_difference. Schema hash: d99b85c38395. Hand-curated docs in workerexamples/ override this page when present.