.. _auto_curve_before_after: *COMPUTE THE BEFORE_AFTER OF THE CURVE* ======================================= Splits a curve into its "before" and/or "after" segments relative to a reference point (e.g. time-zero or peak). Use this worker when you need to isolate the pre-event or post-event portion of a signal for downstream processing or comparison. When to use ----------- Classification: **process**. Tagged: ``before_after``, ``curve_segment``, ``curve_split``, ``signal_segment``, ``time_history``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Curve - curve - vector - — - - Input curve (X-Y vector) to be split; typically a time-history or signal curve — leave empty only if the curve will be injected dynamically by an upstream worker. * - Return Type - return_type - scalar - both - - Controls which segment(s) are returned: 'before' returns only the pre-split portion, 'after' returns only the post-split portion, and 'both' (default) returns the full before-and-after pair concatenated as a single output vector. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - curve_before_after_output_1 - curve_before_after_output_1 - vector - Resulting curve segment(s) as a vector: the before portion, the after portion, or both concatenated, depending on the selected Return Type. 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_before_after `_ .. raw:: html

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