COMPUTE R2 BETWEEN A REFERENCE CURVE AND A COMPARISON CURVE¶
Computes the coefficient of determination (R²) between a reference curve and a comparison curve. The comparison curve is linearly interpolated onto the reference curve’s x-points within the overlapping x-range before R² is calculated. Use this worker to quantify how well a simulation or fitted curve reproduces a baseline/ground-truth signal.
When to use¶
Classification: process.
Tagged: coefficient_of_determination, curve_comparison, goodness_of_fit, interpolation, r2, sim_vs_test.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Reference Curve | reference_curve | vector | — | Baseline or ground-truth curve (x/y vector) against which the comparison curve is evaluated; defines the x-points and y-values used as the denominator in the R² formula. | |
| Comparison Curve | comparison_curve | vector | — | Fit, simulation, or processed curve (x/y vector) being evaluated; it is linearly interpolated onto the reference curve’s x-points within the overlapping x-range before R² is computed. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| R2 | curve_compute_r2_output | scalar | Scalar R² value (dimensionless, range −∞ to 1.0) representing the goodness of fit of the comparison curve relative to the reference curve; a value of 1.0 indicates a perfect match. |
Disciplines¶
- data.correlation
- data.curve.pair
- data.statistics
Auto-generated from transformation schema. Worker id: curve_compute_r2. Schema hash: 398e8add99fb. Hand-curated docs in workerexamples/ override this page when present.