tmove#

swordfish.function.tmove()#

For each element T i in T, return the element in X which is at the same position as (T i-window) in T. If there is no match of (T i - window) in T, return the corresponding element in X at the previous adjacent time of (Ti - window).

Parameters:
  • T (Constant) – A non-strictly increasing vector of temporal or integral type. It cannot contain null values.

  • X (Constant) – A vector of the same size as T.

  • window (Constant) – A scalar of positive integer or DURATION type indicating the size of the sliding window.