nnmnkwii.preprocessing.mulaw¶
-
nnmnkwii.preprocessing.
mulaw
(x, mu=256)[source]¶ Mu-Law companding
Method described in paper [1].
\[f(x) = sign(x) \ln (1 + \mu |x|) / \ln (1 + \mu)\]- Parameters
x (array-like) – Input signal. Each value of input signal must be in range of [-1, 1].
mu (number) – Compression parameter
μ
.
- Returns
Compressed signal ([-1, 1])
- Return type
array-like
See also
nnmnkwii.preprocessing.inv_mulaw()
nnmnkwii.preprocessing.mulaw_quantize()
nnmnkwii.preprocessing.inv_mulaw_quantize()
- 1
Brokish, Charles W., and Michele Lewis. “A-law and mu-law companding implementations using the tms320c54x.” SPRA163 (1997).