COMPUTE AVERAGE VALUE BASED ON TYPE¶
Computes a representative average value from a curve using one of several user-selectable averaging strategies (full range, partial range, first/last, until a threshold, or linear-fit-based). The resulting averaged curve replaces the original y-values with the computed constant. Use this worker to flatten or summarize a curve prior to material calibration or statistical analysis.
When to use¶
Classification: process.
Tagged: R2, average, averaging, curve, linear-fit, plastic-strain, scalar-reduction, slope.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve to be averaged | curve | vector | — | ✓ | The input curve (vector of x/y pairs) to be averaged; must be provided before averaging is applied. |
| Type of average | use_average_value | scalar | no | Selects the averaging strategy: ‘no’ returns the curve unchanged; ‘yes’ averages from 0.0 to end of plastic strain; ‘yes_30f’ averages over the first 30% of the plastic-strain range; ‘yes_30b’ averages over the last 30% of the plastic-strain range; ‘first_last’ uses the first and last values; ‘avg_until’ averages up to the threshold specified in value_type; ‘avg_based_on_linear_fit’ applies averaging only when the curve slope is near-zero (R²/slope thresholds configurable via value_type as ‘R2:SlopeThreshold’, defaulting to 0.9 and 0.001). Defaults to ‘no’. | |
| Value based on type specified above | value_type | scalar | — | Auxiliary numeric or string parameter whose meaning depends on use_average_value: a scalar cutoff value when ‘avg_until’ is selected, or an ‘R2:SlopeThreshold’ string (e.g. ‘0.95:0.005’) when ‘avg_based_on_linear_fit’ is selected; leave blank (defaults to 0.0) for all other averaging types. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| Averaged Curve | curve_averaged | vector | The output curve (same x-axis as input) with y-values replaced by the computed average according to the selected strategy. |
Disciplines¶
- data.curve.transform
- engineering.material.characterization
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_average_values
Auto-generated from transformation schema. Worker id: curve_average_values. Schema hash: 5540dd9490ed. Hand-curated docs in workerexamples/ override this page when present.