GET SLOPE PRIOR TO THE CHANGE

Analyzes a curve to detect the first significant drop, increase, or any change, then computes a slope statistic (max, min, average, mode, or raw slope) from the region of the curve prior to that change point. Use this worker to characterize the pre-event behavior of a curve, such as measuring stiffness or rate-of-change before a structural failure or load drop.

When to use

Classification: process.

Tagged: change_detection, curve_analysis, drop_detection, pre-event, slope, stiffness.

Inputs

Label ID Type Default Required Description
Curve 1 curve1 vector   Input XY curve to analyze (e.g., force-displacement or stress-strain); the worker scans this curve to locate the change point and compute the slope preceding it.
Change Type change_type string drop   Type of change event to detect on the curve: ‘drop’ (default) detects a downward change, ‘increase’ detects an upward change, and ‘any’ detects either direction.
Drop Ratio drop_ratio float 0.975   Fractional threshold (0–1) used to identify the change point; default 0.975 means a value must fall to 97.5% of the local peak (or rise to 102.5% for increases) to qualify as a change.
Return Type return_type string max_slope   Statistic to return from the pre-change slope region: ‘max_slope’ (default), ‘min_slope’, ‘avg_slope’, ‘mode_slope’, or raw ‘slope’; alternatively ‘x’ or ‘y’ returns the coordinate at the detected change point.

Outputs

Label ID Type Description
curve_get_slope_prior_to_change_output_1 curve_get_slope_prior_to_change_output_1 scalar Scalar result representing the requested slope statistic (or x/y coordinate) computed from the portion of the curve prior to the detected change point; units match the input curve’s slope units (y-units / x-units) unless ‘x’ or ‘y’ is selected.

Disciplines

  • data.curve.transform
  • data.signal_processing

Runnable example

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


Auto-generated from transformation schema. Worker id: curve_get_slope_prior_to_change. Schema hash: 0a030cf8686b. Hand-curated docs in workerexamples/ override this page when present.