REMOVE LAST NEGATIVE SLOPE¶
Trims each input curve at the point where the last negative slope begins, effectively removing any downward tail at the end of the curve. An optional percentage parameter allows fine-tuning of the truncation threshold. Use this worker to clean up force-displacement or stress-strain curves that droop at their terminal end.
When to use¶
Classification: process.
Tagged: curve_trimming, force_displacement, postprocessing, remove_negative_slope, slope, stress_strain, tail_removal.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curves To Be Operated On | curvestobeoperatedon | vector | — | One or more curves (e.g. force-displacement or stress-strain) whose trailing negative-slope segments should be removed; accepts a vector/group of curve objects. | |
| Percentage | percentage | text | 0.05 | Fractional threshold (0–1) used to locate the truncation point; defaults to 0.05 (5%), meaning the last point where the slope is still within 5% of the last positive slope — leave at default unless the curve tail requires a tighter or looser cut-off. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curves_remove_negative_slope_output_1 | curves_remove_negative_slope_output_1 | vector | Processed curves with the trailing negative-slope region removed, returned as a vector/group of curves in the same format as the input. |
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=curves_remove_negative_slope
Auto-generated from transformation schema. Worker id: curves_remove_negative_slope. Schema hash: 9f2e26dae5bf. Hand-curated docs in workerexamples/ override this page when present.