- COMPUTE THE REGRESSION_COEFFICIENT BETWEEN CURVES*
Computes the regression coefficient (R²) between two curves, quantifying how well one curve predicts the other. Use this worker to measure the goodness-of-fit or linear correlation between a base curve and a second reference curve.
When to use¶
Classification: process.
Tagged: correlation, curve_comparison, curves, goodness_of_fit, r_squared, regression_coefficient.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve 1 | curve1 | vector | — | Base (reference) curve against which the regression coefficient is computed; accepts a vector of (x, y) pairs. | |
| Curve 2 | curve2 | vector | — | Second curve to compare against the base curve; accepts a vector of (x, y) pairs and should share the same x-axis domain as Curve 1. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curves_regression_coefficient_output_1 | curves_regression_coefficient_output_1 | scalar | Scalar regression coefficient (R²) value in the range [0, 1] representing how closely Curve 2 matches Curve 1; a value of 1 indicates a perfect fit. |
Disciplines¶
- data.correlation
- data.curve.pair
- data.statistics
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curves_regression_coefficient
Auto-generated from transformation schema. Worker id: curves_regression_coefficient. Schema hash: 79dbe601af31. Hand-curated docs in workerexamples/ override this page when present.