decimate#
- class diffsptk.Decimation(period, start=0, dim=-1)[source]#
See this page for details.
- Parameters:
- periodint >= 1
The decimation period, \(P\).
- startint >= 0
The start point, \(S\).
- dimint
The dimension along which to decimate the tensors.
- diffsptk.functional.decimate(x, period=1, start=0, dim=-1)[source]#
Decimate the input signal.
- Parameters:
- xTensor [shape=(…, T, …)]
The input signal.
- periodint >= 1
The decimation period, \(P\).
- startint >= 0
The start point, \(S\).
- dimint
The dimension along which to decimate the tensors.
- Returns:
- outTensor [shape=(…, T/P-S, …)]
The decimated signal.
See also