m_n_kappa.general.interpolation#
- m_n_kappa.general.interpolation(position_value, first_pair, second_pair)#
Linear interpolation between
- Parameters:
position_value (float) – value the corresponding other value must be interpolated
first_pair (list[float]) – 1st position applies to the value that is looked for. 2nd position applies to the value given by argument ‘position_value’.
second_pair (list[float]) – positioning is the same as in
first_pair
- Returns:
value corresponding to the position-value by linear interpolation between the given pairs
- Return type:
float