comet_maths.interpolation.interpolation.model_error_analytical_methods

comet_maths.interpolation.interpolation.model_error_analytical_methods#

comet_maths.interpolation.interpolation.model_error_analytical_methods(x_i: ndarray, y_i: ndarray, x: ndarray, unc_methods: List[str] = ['linear', 'quadratic', 'cubic']) ndarray[source]#

Function to calculate the interpolation model uncertainty by calculating the standard deviation between various interpolation methods. Also includes extrapolation uncertainty when appropriate.

Parameters:
  • x_i – Independent variable quantity x (coordinate data of y_i)

  • y_i – measured variable quantity y (data to interpolate)

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

  • unc_methods – interpolation methods to use in the calculation of the model error. Not used for gpr. Defaults to None, in which case a standard list is used for each interpolation method.

Returns:

interpolation model uncertainty