Computes a item interpolation for temporal vectors defined either by
itemIndices, some tags at these item indices (vectorsMap), and vectors at those tags.
Parameters
----------
item : float
the input item at which the interpolation is required
itemIndices : np.ndarray
the items where the available data is defined, of size
(numberOfTimeIndices)
vectors : np.ndarray or dict
the available data, of size (numberOfVectors, numberOfDofs)
vectorsMap : list
list containing the mapping from the numberOfTimeIndices items indices to the numberOfVectors vectors, of size (numberOfTimeIndices,). Default is None, in which case numberOfVectors = numberOfTimeIndices.
tolerance : float
tolerance for deciding when using the closest timestep value instead of carrying out the linear interpolation