The interpolate function#
Aliases#
halerium.core.interpolate
halerium.core.math.interpolate
- interpolate(evaluation_points, support_point_values, support_point_base, support_point_spacing, batch_dims=0)#
Linear interpolation between points on a regular 1d grid.
- Parameters:
evaluation_points – Operator of shape=(N,). The points at which to evaluate the interpolation.
support_point_values – Operator of shape=(M,). The y-values at the support points on the regular grid.
support_point_base (float) – The support point x-value corresponding to support_point_values[0]
support_point_spacing (float) – The support point spacing, so that x_point_base + i * x_spacing yields the x-coordinate corresponding to y_points[i].
batch_dims (int, optional) – the number of batch dimensions.
- Returns:
operator – Operator of shape=(N,) The interpolated y-values at the evaluation points.
- Return type: