fips.metrics.time_diff_matrix#

fips.metrics.time_diff_matrix(times, absolute=True)[source]#

Calculate the time differences between each pair of times.

Parameters:
  • times (list[dt.datetime]) – The list of times to calculate the differences between.

  • absolute (bool, optional) – If True, return the absolute differences. Default is True.

Returns:

The matrix of time differences.

Return type:

np.ndarray