dcmri.sample#
- dcmri.sample(t, tp, Sp, dt=None) ndarray [source]#
Sample a signal at given time points.
- Parameters:
t (array-like) – The time points at which to evaluate the signal.
tp (array-like) – the time points of the signal to be sampled.
Sp (array-like) – the values of the signal to be sampled. Values that are outside of the range are set to zero.
dt (float, optional) – sampling duration. If this is not provided, linear interpolation between the data points is used. Defaults to None.
- Returns:
Signals sampled at times t.
- Return type:
np.ndarray