wpc1Quant - quantize wpc1Dequant - dequantize void wpc1Quant(float *x, int n, float error, void *inconf, void *qstate) void wpc1Dequant(float *x, int n, void *inconf, void *qstate) wpc1Quant: Input: x array[] for the floats n 0 if the signal is transformed, length of signal otherwise error percent RMS error tolerable inconf configuration inf wpc1Dequant: Output: qstate quantization status Input: n 0 if transformed data, length of signal otherwise inconf configuration info qstate quantization status Output: x array[] for the floats wpc1Quant: Notes: That the rms error in quantization is about error*RMS_amplitude. The magic numbers are based on some relationships of the error measure and the step size. Author: Tong Chen, 08/04/94