comet_maths.interpolation.interpolation.Interpolator.interpolate_1d_along_example

comet_maths.interpolation.interpolation.Interpolator.interpolate_1d_along_example#

Interpolator.interpolate_1d_along_example(x_i: ndarray, y_i: ndarray, x_hr: ndarray, y_hr: ndarray, x: ndarray) ndarray | Tuple[ndarray, ndarray] | Tuple[ndarray, ndarray, ndarray][source]#

Method for interpolating between datapoints by following an example. The example can come from either models or higher-resolution observations. Here the example is assumed to have an unknown normalisation or poor absolute calibration, yet the low resolution data has a more precise calibration (and can thus be used to constrain the high-resolution model).

Parameters:
  • x_i – Independent variable quantity x for the low resolution data

  • y_i – measured variable quantity y for the low resolution data

  • x_hr – Independent variable quantity x for the high resolution data

  • y_hr – measured variable quantity y for the high resolution data

  • x – Independent variable quantity x for which we are trying to obtain the measurand y

Returns:

The measurand y evaluated at the values x