delay#
- class diffsptk.Delay(start, keeplen=False, dim=-1)[source]#
See this page for details.
- Parameters:
- startint
The start point, \(S\). If negative, advance the signal.
- keeplenbool
If True, the output has the same length of the input.
- dimint
The dimension along which to delay the tensors.
- diffsptk.functional.delay(x, start=0, keeplen=False, dim=-1)[source]#
Delay the input signal.
- Parameters:
- xTensor [shape=(…, T, …)]
The input signal.
- startint
The start point, \(S\). If negative, advance the signal.
- keeplenbool
If True, the output has the same length of the input.
- dimint
The dimension along which to delay the tensors.
- Returns:
- outTensor [shape=(…, T-S, …)] or [shape=(…, T, …)]
The delayed signal.