lair.clock.time_decay_matrix#

lair.clock.time_decay_matrix(times, decay)[source]#

Calculate the time decay matrix for the specified times and decay.

Parameters:
  • times (list[dt.datetime]) – The list of times to calculate the decay matrix for.

  • decay (str | pd.Timedelta) – The decay to use for the exponential decay.

Returns:

np.ndarray – The matrix of time decay values.

Return type:

ndarray