Abstract: A method of encoding digital data using a variable-length code is disclosed. Using this method, the data are first transformed so that the values generally correspond to a family of statistical distributions, in this case, negative exponential distributions. The transformed data values are then analyzed to develop parameters describing a particular variable length code. The transformed data values are encoded using this code and the parameter values are concatenated onto the code to aid in the decoding operation.