functional_mu_law_encoding.RdEncode signal based on mu-law companding. For more info see the Wikipedia Entry
functional_mu_law_encoding(x, quantization_channels)(Tensor): Input tensor
(int): Number of channels
tensor: Input after mu-law encoding
This algorithm assumes the signal has been scaled to between -1 and 1 and returns a signal encoded with values from 0 to quantization_channels - 1.