Low-complexity nonlinear filters

03-11-2005 дата публикации
Номер:
AU2005236798A1
Принадлежит: Optichron Inc
Контакты:
Номер заявки: 67-23-200598
Дата заявки: 18-02-2005

[1]

[0001] The present invention relates generally to digital signal processing, for example, digital signal processing of nonlinear systems. BACKGROUND OFTHEINVENTION In digital signal processing systems, there is often a need to characterize and implement nonlinear functions. A traditional approach to nonlinear function characterization is the Volterra nonlinear expansion. Let the channel input signal vector be I/, = [ v,, v , . v,, N] and the channel output bey,,. A simple example ofa Volterra function is: y,, = O 0 1 , + (-1 1 V . 1 + 0 2 V, 2 1 ÷ a 3 v, v . 1 + (3 4 v, V, 1 -i(equation 1 ). The Volterra function characterizes a nonlinear function having a set of fixed coefficients that multiply higher powers of the input data. In practice, it is often difficult to implement a nonlinear filter using a Volterra transfer function because of the higher order terms. In U.S. Patent Application No. 10/418,944 filed April 18, 2003, which is incorporated herein by reference for all purposes, a general nonlinear filter structure was described. The same filter function can be expressed using different forms. An example of a general form is: K A " y,, v,, + b + a, V,+M I (equation 2). j=L [00051 Implementing a nonlinear filter based on this general form is typically easier than implementing a Volterra function. However, although nonlinear tilters can be more easily implemented using nonlinear elements such as absolute value operators and min-max operators, the cost of implementation is often still significant due to the number of multiplication operations required to implement nonlinear functions using the generalized forms. It would be useful to have a more cost effective way to implement nonlinear filters. It would also be desirable if the cost savings would not significantly sacrifice filter performance. It is desired to address some of the shortcomings of prior art filters, or at least provide a useful alternative. SUMMARY OF THE INVENTION [00061 The present invention provides a method of processing an input signal that includes an input variable, comprising: comparing the input variable to a set of ordered constants; determining the relative location of the input variable within a range of possible inputs; determining a filter coefficient of a nonlinear filter using the relative location of the input variable; and generating an output by filtering the input signal using the nonlinear filter. 100071 The present invention also provides a configurable filter comprising: an interface configured to receive an input signal that includes an input variable; a nonlinear filter coupled to the interface, configured to process the input signal; and a processor coupled to the nonlinear filter, configured to determine the relative location of the input variable within a range of possible inputs and to determine a filter coefficient of the nonlinear filter using the relative location of the input variable. [00081 The present invention also provides a computer program product for processing an input signal that includes an input variable, the computer program product being embodied in a computer readable medium and comprising computer instructions for: comparing the input variable to a set of ordered constants; determining the relative location of the input variable within a range of possible inputs; determining a filter coefficient of a nonlinear filter using the relative location of the input variable; and generating an output by filtering the input signal using the nonlinear filter. BRIEF DESCRIPTION OF THE DRAWINGS Preferred embodiments of the present invention are hereinafter described, by way of example only, with reference to the accompanying drawings, wherein: Figures IA-1B are diagrams illustrating an example application of a nonlinear filter. [O011l Figure 1C is a diagram illustrating several ways of approximating a nonlinear filter response function. Figure 2 is a flowchart illustrating the processing of an input signal according to some embodiments. 10013] Figure 3 is a block diagram illustrating a first order low complexity nonlinear filter embodiment. [00141 Figure 4 is a diagram illustrating a 3-D manifold of the output of a first order nonlinear filter embodiment. Figure 5 is a block diagram illustrating a second order low complexity nonlinear filter embodiment. [00161 Figure 6 is a diagram illustrating a 3-D manifold of the output of a second order nonlinear filter embodiment. Figure 7 is a block diagram illustrating an N-th order nonlinear filter embodiment. Figures 8A and 8B are block diagrams illustrating, a nonlinear filter embodiment. Figure 9 is a diagram illustrating a computational block embodiment used to compute the nonlinear filter coefficients. Figure 10 is a block diagram illustrating another computational block used compute the nonlinear filter coefficient according to another embodiment. DETAILED DESCRIPTION The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. A component such as a processor or a memory described as being configured to perform a task includes both a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. In general, the order of the steps of disclosed processes may be altered within the scope of the invention. A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not ulmecessarily obscured. An improved signal processing teelmique for nonlinear systems is disclosed. In some embodiments, one or more input variables are compared to a set of ordered constants to determine the relative locations of the input variables within a range of the possible inputs. One or more filter coefficients of a nonlinear filter are determined using the relative locations. The filter coefficients can be determined without using multiplication operations. In some embodiments, filter coefficients for zero order, first order, second order and/or higher order filters are pre-computed, stored and retrieved when appropriate. Higher order filters can be formed by nesting lower order filters. Figures 1A-1B are diagrams illustrating an example application of a nonlinear filter. In Figure 1A, an input analog signal 120 is sent to an analog to digital converter (ADC i 122 to be converted into a digital signal 124. Because of component mismatches and other system characteristics, ADC 122 produces an output 124 that has some distortion. Signal 124 can be viewed as a combination of a component 126 that is an ideal digitized output based on the input and a digital distortion component 128. The digital distortion component is different from quantization error, which is equal to the portion of the analog signal that is below the finest ADC quantization level and typically cannot be reduced for an ADC with a predefined number of bits. The distortion component can be predicted and corrected if the distortion model is known. In Figure 1B, a nonlinear filter 130 is trained to model the distortion characteristic of ADC 122. Combiner 132 subtracts the distortion component from the ADC output to generate a distortion corrected output 134, which is approximately equal to the ideal digital output. Figure 1C is a diagram illustrating several ways of approximating a nonlinear filter response function. In the example shown, the output is dependent on a one dimensional input. The techniques shown are also applicable to multi-dimensional inputs. In this example, nonlinear function 102 can be approximated as a zero order function 104, a first order function 106 or a second order function 108. As used herein, an N order function is expressed as: N y,, = cjv j (equation 3), .1=0 where cj are coefficients. In the example shown, the input range is divided into discrete sections, marked using a set of ordered constants/3 o to /3 7. The number of sections depends on factors such as performance requirements and may vary for different embodiments. The distribution of/3 's across the input range may be uniform or non-uniform depending on system implementation. The zero order function 104 is determined by approximating the transfer function in each portion of the input range (such as the input ranges between/3o and il 1 , between/3 1 and/3 2 , etc.) using a linear, zero order function and then combining the functions. The approximation may be performed using least mean square error or other appropriate techniques to determine the suitable coefficients. Similarly, the first order approximation function 106 is comprised of linear first order approximation functions within each portion of the input range and the second order approximation 108 is comprised of nonlinear second order approximation functions within each portion of the input range. Higher order approximations are also possible. The generalized nonlinear fimction of equation 2 can be transformed and approximation can be made based on the transformed function. The absolute value portion of the generalized nonlinear function can be written as: j V,, + flj ] = sign ( j l/,, +/3j ) { j V,, +/3j } = A j,, { j V n +/3j } (equation 4), where sign ( j + flj ) = 2% (equation 5). Consequently, the general form of the nonlinear filter can be written as: (equation 6), which is equivalent to writing: y,, = (v,,) v,, + .-. + + g,,, (v,,)(equation 7). [00281 The above equation can be viewed as a "linear" convolution between the input variables and the nonlinear coefficients that are time variant nonlinear functions the input signal. The relative location of input V,, in the multi-dimensional input space determines the values of the 2j,, elements and therefore the values of the a ,,, and b,, coefficients. The dependence of the filter coefficient values on the input signal vector gives the filter its nonlinear property. The function is sometimes referred to as a first order nonlinear filter because the coefficient of each variable is a function that does not depend on the variable itself. In this case, the coefficient is a function of the sign of a function of the variables v,,_j. [00291 Equation 6 can be rewritten in vector form as: 71I 0 0 ' 1 O( 1, 1 ''' ( 2 N_ 2 , 1 /[ Vn y,, = A r V,, +b+[c A,,, c 2 2 2 ,,... 1 0,2(Z 1, 2• 2 N-2,2/ "Vn_i . o,K( I,K " " " ( 2 N2 ,K [..Vn2 N+ 2 (equation 8). The equation shows the dependence of the coefficients on Z j,,. Once written in vector form, the filter can be further manipulated to achieve computational reductions. For example, the vectors form can be rewritten as: 0 • • • 0 (Zo, y, = A r V,, qb -°c [c 1 1 n c 9 n ''' CKIO Kn] Z O 0 0, 2 € a,, 0 1 , 2 3 0 0 ! l ])n-, Vn " - i 0 0 0 0 0C2NN:21 V'- 2 !V+2 (equation 9), which can be further reduced to: (equation 10), which reduces the original equation to: KI K 2 y,,=ArV,,+b+Zcs v,,+flj]+ Zcj Vn_ 1 q'-j j "''+ X£2cj v°_:N+ 2 + fls I j=l j=KI+I j=K 2 v3+I KI K 2 K 2 ;¢_ 2 j=l j=KI+I j=K 2 v_ 3 +I (equation 11), which means y, = I ao + Z K, Cj A; ) v,, +...+ I a 2 ,_ 2 + Z cj ..] 7 , ) v,_ 2 N+ 2 + I b + Z cj ,Gs d.y,,) j=l j=K 2 N_ 3 +I j=l (equation 12). As will be shown in more details below, equation 12 has reduced computational burden because the calculation of 2 s's does not require any multiplication. The computational savings of this function is significant compared to the generalized filter function, where a linear convolution c j V,, is performed before 2 s is computed. Since the dependency on the input is of first order, the reduced nonlinear filter function is referred to as a first order low complexity filter function. Other simplifications using vector manipulation are also possible. For example, (equation 13) produces a nonlinear filter Yn = a 0 ,n (])n' ]) 1 ,- 1 ) ])n -[- a 1 ,n ( n, ])n1 ) Vn1 " -''" - a'° 2 N2 ,t,(]gt;- 2 N+ 2) Vn2 N+ 2 -1bttt(gt) (equation 14) where each coefficient of the first two variables corresponds to a function of the first two variables, and each of the remaining coefficients are functions of the variable that they multiply. Figure 2 is a flowchart illustrating the processing of an input signal according to some embodiments. Process 200 is applicable to various nonlinear filter embodiments, some of which are shown in more details below. An input variable of the input signal is compared to a set of ordered constants (202). ha some embodiments, the set of ordered constants are the/3 constants that divide the input range into multiple sections. The relative location of the input variable within the range of possible inputs is determined (204). In some embodiments, the relative location is determined using the value of Zj.. Using the relative location, one or more filter coefficients of a nonlinear filter are determined (206). The coefficients, which depend on the inputs, may vary over time. The coefficients can be detemained without requiring multiplication operations, allowing the filter to process its inputs efficiently. In some embodiments, the nonlinear filter is used to process the input and generate the output. In some embodiments, the nonlinear filter with the derived coefficients is used as a coefficient for a higher order nonlinear filter, which is then used to filter the input and generate the output. Figure 3 is a block diagram illustrating a first order low complexity nonlinear filter embodiment. Filter 300 shown in this example has a transfer function that is equivalent to equation 12. The input vector Vn is sent to a sign processor 302 to generate 2j,,. The constant coefficients, including cj, aj, cjfl: are stored in a memory 304, which is implemented using registers or other appropriate data storage component. The first order coefficients of equation 12 are computed by multiplying L with corresponding cj or flj, summing the results, and adding to the corresponding constant aj. The coefficients are then multiplied with an input variable v if appropriate. The results of the individual first order filters are combined to generate a nonlinear output Yn. Figure 4 is a diagram illustrating a 3-D manifold of the output of a first order nonlinear filter embodiment. In this example, filter function 400 is a function of two input variables. The first order terms form planar segments of the manifold. Function 400 can be used to approximate a continuous, 3-D nonlinear function. Functions involving higher dimensions can be approximated similarly. As shown previously, the generalized nonlinear filter function of equation 2 can be transformed to a first order nonlinear filter as shown in equation 7. A further extension of the nonlinear filter transformation leads to another nonlinear filter expression: y,, : fo,,, (v,,) v,, +-.- + AN2 ,,, (Z,,) v,,_ 2 + 2 + o,,, (V.) v. +... + 2 N2 ,. (Vo) v._ 2 N+ 2 + b,, (V,,) (equation 15) where each fk,. (I/.,) is a first order nonlinear function K fk.,,(V,,) = A[ V,, + b k + c V,, + ,G : "d (V,,) v,, +... + a 2 .,,(V,) v,,_ 2 N+ 2 + k (V,,,) j=l (equation 16). Thus, the teas of equation 15 that have f ,, (V,,) as coefficients are second order functions of the input variables (as used herein, a second order function includes at least one term of an input variable to the power of 2 or a cross product of input variables). In different embodiments, the coefficients may be multiplied by the input variable, a delayed input variable, a derivative of the input, or other appropriate characteristics of the input. Figure 5 is a block diagram illustrating a second order low complexity nonlinear filter embodiment. In this example, second order low complexity filter 500 is implemented using a plurality of first order low complexity filters. The coefficients of the first order low complexity filters are computed using techniques such as least mean squared error. The input vector is sent to each of the first order low complexity filters, and each of the filter output is multiplied with a corresponding input variable. The results are combined to generate the output y,. Figure 6 is a diagram illustrating a 3-D manifold of the output of a second order nonlinear filter embodiment. In this example, filter function 600 is a function of two input variables. The second order terms form parabolic segments of the manifold. Higher order filters such as this can sometimes be used to better approximate the multidimensional manifold that defines the desired nonlinear function, such as the actual transfer function of a system, an error function, etc. [00391 The approach can be further extended to develop third or higher order nonlinear filters. Figure 7 is a block diagram illustrating an N-th order nonlinear filter embodiment. In the example shown, a filter of order N (N>2) is implemented by nesting lower order filters. N-th order low complexity filter 700 includes a plurality of (N-1)-th order low complexity filters. The outputs of the (N-1)-th order filters are multiplied with the input variables. Thus, the (N-1)-th order filters act as input coefficients of the N-th order filter. Each of the (N-1)-th order filter in turn may be implemented using a plurality of (N-2)-th order low complexity filters as input coefficients. Nesting allows higher order filters to be more easily implemented. In some embodiments, the nonlinear filter is implemented as a zero order nonlinear filter, where the transfer function of the filter in each discrete region is a constant. An exanaple of the filter response of zero order is shown as 104 of Figure 1C. The zero order filter is sometimes referred to as a "catastrophic" structure because of the discontinuities in the filter response. A general expressed as: K K form of a zero order nonlinear filter is K Y,, :a 0 + a I +... + a 2 N_ z + b + Z c°d + Z c @ +...+ Z e V-2d N-2 j=l j=l j=l (equation 17). In some embodiments, the zero order nonlinear filter based on equation 17 is implemented similarly as filter 300 of Figure 3, except that the multiplications by v,,, K K v,,_x, etc. are omitted and the outputs a o+ " Lcs o o J,,' aN + CSZIJ,, ] 1 ' etc. are summed ]=1 j=l directly. Nonlinear filters of different orders can be combined to form a new filter with desired transfer function. Figures 8A and 8B are block diagrams illustrating a nonlinear filter embodiment. In the example shown, nonlinear filter 802 is implemented using a zero order nonlinear filter 804, a first order nonlinear filter 806, a second order nonlinear filter 808 and other higher order nonlinear filters up to order N. More than one filter of a certain order may be used. One or more orders may be omitted. The selection of N depends on the requirements of filter 802 and may vary for different embodiments. A single zero order nonlinear filter may be sufficient for some applications while an N greater than 3 may be required for some others. A nonlinear filter constructed by combining different orders of nonlinear filters can achieve the desired filter requirements with improved computational efficiency. The complexity of nonlinear filters can be further reduced in some embodiments. Take the following first order filter for example: K K y,, =ao,,,, +a, v,,_, ,,,, +po i÷Ec ,,,,_, +p l j=l j=l = a o+ c i v,,+ a 1+ c s v,,_ 1+ b+ c°d,}fl)o o+ c A}fl'jl i j=1 j=l "= "= =ao,,, v,, +a ,, v,,_ 1 +b,,, (equation 18) where (equation 19). K [00441 Since @ = + 1, the coefficient " c '3 ' can be computed without any j=l K multiplication. Similarly, cj' X)'fl)" can also be computed without multiplications since the product c f' fl " can be pre-computed, stored and looked up when needed. Thus, the nonlinear filter of equation 18 can be implemented as a first order filter that requires only two multiplication operations. Figure 9 is a diagram illustrating a computational block embodiment used to compute the nonlinear filter coefficients. In this example, the coefficients for the filter shown in equation 18 are computed. Different ranges of inputsresult in different 2 ', K K which can be either 1 or-1. Potential coefficient values c 'j.' and c 2 'fl " that j=l ]=1 correspond to different input ranges are pre-computed and stored in registers. When an input is received, it is compared with the set of flj: to determine its relative location in the range of inputs and the corresponding pre-computed coefficient value for this particular location. Figure 10 is a block diagram illustrating another computational block used to compute the nonlinear filter coefficient according to another embodiment. In this example, the Coefficient value is determined using an indicator that indicates the relative location of the input within the range of possible inputs. The indicator used in this case is a "thermometer code," which is a vector having a total of at most one sign change among any two adjacent variables. In the example shown, every term of the thermometer code has an equal magnitude of 1. [00471 Take the following second order function as an exmnple: (equation 20). 100481 The input is compared to the set of flj x values to determine the relative location of the input variable within the range of possible inputs, and the vector of j .... denoted as A,,. Depending on the input, A,, may be a vector with terms that are +1 only, - 1 only, or -1 for the first k terms and +1 for the rest of the terms. In other words, A,, is a thermometer code with at most one sign change among its terms. For example, assuming that constants ,Of are distributed across the dynamic range of v n (- 1,1 ) and there are 8valuesoffl ( 4 7 3 7 2 7 7 1 7 1 2 7 7 3 4) . Ifv,,<--- 4 7' A,=[-1-1-1-1-1-1-1-11. Ifv,, > - , then A, = [+l +l +l +l +l +l +l +l ]. If 3.5 vn is somewhere in between, A,, may have a sign change. For example, if v, - 7 ' 1.5 then A, :[-1-1-1-1-1-1-1+1 ], Ifv = -, then A, =[-1-1-1+1+1+1+1+1 ]. Since the thermometer code has only 8 values, there are only 8 possible values for K K a 01,,, = Z co "g3' 8 possible values for gq., = Z c 2 ,,, and 64 possible values for ao,,, j =i j=l K K : o+ZO o+z 4 ' j=l j=l The number of add operations can be reduced by pre-computing the possible values for coefficients of a 01 .... a 1 .... etc. and storing them in memory. In this example, the addresses of the coefficients are stored in a lookup table 1002, which stores the 8 possibilities of thermometer code A,, and the corresponding addresses of precomputed coefficients. The coefficients can be retrieved by accessing the memory addresses that correspond to the appropriate thermometer code entry. Once the coefficients do, .... d,,.° etc.., are read out of memory, the filter output can be computed as y,, = 0 ,.,, v 2 + d,., v,, v,,., + c7 0 ., v,, + at.,, v,,., + b (equation 22). n This technique is also applicable to zero, first or higher order filters. A technique for nonlinear system signal processing has been disclosed. By using pre-computed filter coefficients and nested nonlinear filters, complexities in computation and filter implementation are reduced. Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive. Many modifications will be apparent to those skilled in the art without departing from the scope of the present invention as herein described with reference to the accompanying drawings. Throughout this specification and the claims which follow, unless the context requires otherwise, the word "comprise", and variations such as "comprises" and "comprising", will be understood to imply the inclusion of a stated integer or step or group of integers or steps but not the exclusion of any other integer or step or group of integers or steps. The reference in this specification to any prior publication (or information derived from it), or to any matter which is known, is not, and should not be taken as an acknowledgment or admission or any form of suggestion that that prior publication (or information derived from it) or known matter forms part of the common general knowledge in the field of endeavour to which this specification relates.



[2]

Processing an input signal that includes an input variable is disclosed. The input variable is compared to a set of ordered constants, the relative location of the input variable within a range of possible inputs is determined and a filter coefficient of a nonlinear filter is determined using the relative location of the input variable. A configurable filter includes an interface configured to receive an input signal that includes an input variable, a nonlinear filter coupled to the interface, configured to process the input signal, and a processor coupled to the nonlinear filter, configured to determine the relative location of the input variable within a range of possible inputs and to determine a filter coefficient of the nonlinear filter using the relative location of the input variable.



I, A method of processing an input signal that includes an input variable, comprising:

comparing the input variable to a set of ordered constants; determining the relative location of the input variable within a range of possible inputs; determining a filter coefficient of a nonlinear filter using the relative location of the input variable; and generating an output by filtering the input signal using the nonlinear filter.

2. A method as recited in Claim i, wherein the set of ordered constants are constants that divide the range of possible inputs.

3. A method as recited in Claim 1, wherein determining the relative location of the input variable comprises determining from the comparison an indicator that indicates the relative location of the input variable.

4. A method as recited in Claim !, wherein determining the relative location of the input variable comprises determining from the comparison an indicator that indicates the relative location of the input variable; and the indicator includes a thermometer code.

5. A method as recited in Claim 1, wherein the filter coefficient is determined without using multiplication operation.

6. A method as recited in Claim i, wherein the filter coefficient a pre-computed value that is stored in a memory location.

7. A method as recited in Claim 1, wherein:

the filter coefficient is pre-computed and stored in a memory location; determining the relative location of the input variable within a range of possible inputs comprises determining from the comparison an indicator that indicates the memory location and accessing the memory location.

8. A method as recited in Claim l, further comprising using the nonlinear filter as a higher order coefficient of a higher order nonlinear filter.

9. A method as recited in Claim 1, further comprising using the nonlinear filter as a higher order coefficient of a higher order nonlinear filter and generating an output by filtering the input signal using the higher order nonlinear filter.

10. A method as recited in Claim 1, wherein the filter coefficient is a constant.

11. A method as recited in Claim 1, wherein the coefficient is multiplied by a characteristic of the input signal.

12. A method as recited in Claim 1, wherein the filter coefficient is a lower order filter coefficient and the method further comprising multiplying the lower order filter coefficient with a characteristic of the input signal to obtain a higher order filter coefficient of a higher order filter.

13. A method as recited in Claim 1, wherein:

the nonlinear filter is a lower order nonlinear filter; the filter coefficient is a lower order filter coefficient; and the method further comprising:

multiplying the lower order filter coefficient with a characteristic of the input signal to obtain a higher order filter coefficient of a higher order nonlinear filter; and sending an output of the lower order filter to be processed by the higher order filter.

14. A method as recited in Claim 1, wherein the nonlinear filter has a linear transfer function at the determined relative location.

15. A method as recited in Claim 1, wherein the nonlinear filter has a nonlinear transfer function at the determined relative location.

16. A configurable filter comprising:

an interface configured to receive an input signal that includes an input variable; a nonlinear filter coupled to the interface, configured to process the input signal; and a processor coupled to the nonlinear filter, configured to determine the relative location of the input variable within a range of possible inputs and to determine a filter coefficient of the nonlinear filter using the relative location of the input variable.

17. A configurable filter as recited in Claim 16, wherein the set of ordered constants are constants that divide the range of possible inputs.

18. A configurable filter as recited in Claim 16, wherein the processor is configured to determine the relative location of the input variable by determining from the comparison an indicator that indicates the relative location of the input variable.

19. A configurable filter as recited in Claim 16, wherein the filter coefficient is determined without using multiplication operation.

20. A configurable filter as recited in Claim 16, wherein the filter coefficient a precomputed value that is stored in a memory location.

21. A configurable filter as recited in Claim 16, wherein the nonlinear filter is a zero order filter.

22. A configurable filter as recited in Claim 16, wherein the nonlinear filter is a coefficient to a higher order nonlinear filter.

23. A computer program product for processing an input signal that includes an input variable, the computer program product being embodied in a computer readable medium and comprising computer instructions for:

comparing the input variable to a set of ordered constants; determining the relative location of the input variable within a range of possible inputs; determining a filter coefficient of a nonlinear filter using the relative location of the input variable; and generating an output by filtering the input signal using the nonlinear filter.