pwtools.signal.odd

pwtools.signal.odd(n, add=1)[source]

Return next odd integer to n.

Can be used to construct odd smoothing kernels in smooth().

Parameters:
  • n (int)

  • add (int) – number to add if n is even, +1 or -1