onix.utils.interpolation_between_two_points

onix.utils.interpolation_between_two_points(pair1, pair2, x)[source]

Linearly interpolates between two points to find the ordinate to a given abscissa value (x).

Parameters
  • pair1 (List of two floats) –

  • pair2 (List of two floats) –

  • x (float) – Abscissa of the point for which the ordinate is calculated