Interpolation module#

The interpolation module allows simple interpolation of data.

It is highly recommended to interpolate data over extent for analysis and optimization.

For experimental data with many data points (e.g. DSC or rheology experiments), a linear interpolation is usually more than enough.

For experimental data with scarce data points (e.g. FTIR experiments) a cubic spline interpolation might be more appropriate.

interpolation.check_increase_and_remove_if_not(conversions, times, temperatures, rates)[source]#

Check if conversions are increasing and remove any non-increasing segments.

Parameters:
  • conversions (list) – List of conversion arrays.

  • times (list) – List of time arrays.

  • temperatures (list) – List of temperature arrays.

  • rates (list, optional) – List of rate arrays. Default is None.

Returns:

New lists of conversions, times, temperatures, and rates with non-increasing segments removed.

Return type:

tuple

interpolation.cubic_spline_interpolation(conversions_lists, times_lists, temperatures_lists, rates_lists, number_of_points)[source]#

Perform cubic spline interpolation on conversion, time, temperature, and rate data.

Parameters:
  • conversions_lists (list) – List of conversion arrays.

  • times_lists (list) – List of time arrays.

  • temperatures_lists (list) – List of temperature arrays.

  • rates_lists (list) – List of rate arrays.

  • number_of_points (int) – Number of points for interpolation.

Returns:

Interpolated conversion, time, temperature, and rate arrays.

Return type:

tuple

interpolation.cubic_spline_interpolation_multiple_limits(conversions_lists, times_lists, temperatures_lists, rates_lists, number_of_points)[source]#

Perform cubic spline interpolation on conversion, time, and temperature data with multiple limits.

Parameters:
  • conversions_lists (list) – List of conversion arrays.

  • times_lists (list) – List of time arrays.

  • temperatures_lists (list) – List of temperature arrays.

  • number_of_points (int) – Number of points for interpolation.

Returns:

Interpolated conversion, time, and temperature arrays.

Return type:

tuple

interpolation.limit_of_interpolation(conversions_lists)[source]#

Find the minimum and maximum values in a list of conversion lists.

Parameters:

conversions_lists (list) – List of conversion lists.

Returns:

Minimum and maximum values found in the conversion lists.

Return type:

tuple

interpolation.linear_interpolation(conversions_lists, times_lists, temperatures_lists, rates_lists, number_of_points)[source]#

Perform linear interpolation on conversion, time, temperature, and rate data.

Parameters:
  • conversions_lists (list) – List of conversion arrays.

  • times_lists (list) – List of time arrays.

  • temperatures_lists (list) – List of temperature arrays.

  • rates_lists (list) – List of rate arrays.

  • number_of_points (int) – Number of points for interpolation.

Returns:

Interpolated conversion, time, temperature, and rate arrays.

Return type:

tuple

interpolation.linear_interpolation_multiple_limits(conversions_lists, times_lists, temperatures_lists, rates_lists, number_of_points)[source]#

Perform linear interpolation on conversion, time, temperature, and rate data with multiple limits.

Parameters:
  • conversions_lists (list) – List of conversion arrays.

  • times_lists (list) – List of time arrays.

  • temperatures_lists (list) – List of temperature arrays.

  • rates_lists (list) – List of rate arrays.

  • number_of_points (int) – Number of points for interpolation.

Returns:

Interpolated conversion, time, temperature, and rate arrays.

Return type:

tuple