nnmnkwii.preprocessing.inv_mulaw

nnmnkwii.preprocessing.inv_mulaw(y, mu=256)[source]

Inverse of mu-law companding (mu-law expansion)

\[f^{-1}(x) = sign(y) (1 / \mu) (1 + \mu)^{|y|} - 1)\]
Parameters:
  • y (array-like) – Compressed signal. Each value of input signal must be in range of [-1, 1].
  • mu (number) – Compression parameter μ.
Returns:

Uncomprresed signal (-1 <= x <= 1)

Return type:

array-like