pyFDN.mulaw_encode# pyFDN.mulaw_encode(x, mu=255.0)[source]# Mu-law companding (encode): linear amplitude to companded. Parameters: x (ArrayLike) – Input signal. If input is in [-1, 1], the output will be in [-1, 1]. mu (float) – Compression parameter (default 255, as in G.711). Return type: ndarray Returns: Companded signal.