pyrc.validation.conduction.comparison#
- interpolate_extrapolate_vectors(first_x, second_x, second_y)#
Interpolates and extrapolates y-values from the second dataset onto the x-values of the first dataset.
For extrapolation, uses linear extension through the two nearest points.
Parameters:#
- first_xarray-like
X values of the first dataset (e.g., 1500 points)
- second_xarray-like
X values of the second dataset (e.g., 7 points)
- second_yarray-like
Y values of the second dataset (to be interpolated/extrapolated)
Returns:#
- new_xnumpy.ndarray
Same as first_x
- new_ynumpy.ndarray
Interpolated/extrapolated y-values at first_x positions