comet_maths.interpolation.interpolation.gpr_basics#
- comet_maths.interpolation.interpolation.gpr_basics(x_i: ndarray, y_i: ndarray, x: ndarray, u_y_i: ndarray | None = None, kernel: str | None = 'RBF', min_scale: float | None = 0.01, max_scale: float | None = 10000) ndarray [source]#
Function to perform basic gaussian process regression
- 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
u_y_i – uncertainties on y_i, defaults to None
kernel – kernel to be used in the gpr interpolation. Defaults to “RBF”.
min_scale – minimum bound on the scale parameter in the gaussian process regression. Defaults to 0.01
max_scale – maximum bound on the scale parameter in the gaussian process regression. Defaults to 100
- Returns:
The measurand y evaluated at the values x (interpolated data)