METHOD FOR EXECUTING A LINEAR TRANSFORMATION

Abstract: Sliding weighted Fourier transformer for the transformation of rows of numbers, in the process of which a new Fourier transformation is performed by making a correction to the previously determined Fourier transformation. In order to obtain a weighted Fourier transformation, the Fourier transformation is split-up in three transformation which can also be corrected and which together make up the weighted Fourier transformation.

Description: METHOD FOR EXECUTING A LINEAR TRANSFORMATION The invention relates to a method for performing an N- points linear transformation with N = 2, 3 , . . . , upon a row of numbers X l r . . , X , which N-points transformation can be performed by multiplying the row of numbers with a matrix, which matrix has the property that the (i-l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector. Amongst others, the Discrete Fourier Transform (DFT) is known to have this property. Large transformations of this type, and most notably the Fourier transformations, are ubiquitous to all fields of engineering and science, such as medical science, telecommunications, and radar design. The most implemented method for generating this transformation is the Fast Fourier Transform algorithm. Within the limits set by computer hardware and allowable computing time, the Fast Fourier Transform is an efficient mathematical method for computing a Fourier transformation of any desired length. In practice, however, these hardware and time limits usually result in a step-wise application of the algorithm, whereby data blocks that are only partially overlapping in time are input to the algorithm. This practice can pollute the final result. For example, a radar echo or a sonar echo can straddle two adjoining data blocks, creating transient effects in the Fast Fourier Transform result that would interfere with detection. For transformations with the special property that the (i-l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector, it is not necessary to perform an entire new calculation when a new measurement value is added and the oldest measurement value is deleted. Instead, it is possible to obtain a transformation of a row of numbers Xi + • • / χ _ +N from a previously computed transformation of a row of numbers Xi ..,Xi +N _ι by correcting this previously computed transformation. This known correction procedure contains the steps of subtracting from the previously computed transformation the product of Xi and the first column of the matrix, multiplying the result by the correction vector and adding the product of X i+N and the last column of the matrix. In this way a new transformation is obtained by only 3xN parallel sets of multiplications. In the case of the DFT, where the first column in the transformation matrix is always a column of ones, only 2xN parallel sets of multiplications are needed. The elements of the correction vector can be gained simply by dividing the elements of the first column of the transformation matrix by the corresponding elements of the second column of the transformation matrix. It is also possible to continuously produce a new transformation for every k new measurement values, where k = 1, 2,.., by modifying the previous transformation in an analogous manner. It is possible then to obtain a transformation of a row of numbers X i+k , .. ,X i+N _ 1+ from a previously computed transformation of a row of numbers Xi/ ' -/Xi +N -ι by correcting this previously computed transformation. The correction procedure contains the steps of subtracting from the previously computed transformation the product of X and the first column,.., until the product of X i+k -ι and the k th column of the matrix, then multiplying the result by a k-correction vector and then adding the product of X i+N and the (N-k+l) th column,.., until the product of X i+N _ι +k and the last column of the matrix. The elements ' of the k-correction vector can be gained by dividing the elements of the first column of the transformation matrix by the corresponding elements of the (k+l) th column of the transformation matrix. Most transformations, and in particular the Fourier transformation, are used almost exclusively in combination with a weighting function, and more in particular with a symmetrical weighting function, in order to suppress side lobes in the transform results. It can easily be understood that transformations with symmetrical weighting functions do not have the property that the (i-l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector. This is probably the reason why the known correction procedure has never drawn much attention. The present invention does relate to a method for performing an N-point linear weighted transformation with N=2, 3,..., upon a row of numbers X X ,..,X N , which N-points transformation can be performed by multiplying the row of numbers with a weighted matrix, for which the unweighted matrix has the property that the (i-l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector. The inventive method is characterized in that a weighted transformation can be realised or approximated by a sum of at least a partial transformation U' , a partial transformation U r ' , and a partial transformation kU, in such a way that each partial transformation has the property that an (i-l) th column from a matrix that represents the partial transformation can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector. The elements of the correction vector of a partial transformation can be obtained by dividing the elements of the first column of the partial transformation matrix by the corresponding elements of the second column of the partial transformation matrix. A first favourable embodiment of the inventive method is characterized in that the matrix of the partial transformation U' is obtained by multiplying the successive columns with powers of a real constant C, with C<1, and that the matrix of the partial transformation U' ' is obtained by multiplying the successive columns with powers of a real constant C "1 . This results in two asymmetrically weighted matrices of which the sum is symmetrical. The matrix KU can be used for normalizing the result. A second favourable embodiment of the inventive method is characterized in that the matrix of the partial transformation U' is obtained by multiplying the successive columns with powers of a complex number D, with D= e jx and that the matrix of the partial transformation U' ' is obtained by multiplying the successive columns with powers of D "1 . Each of both matrices obviously has the desired property and the sum of these two matrices with the complex conjugated weightings results in a real weighting with some trigoniometric function. The matrix KU can be used for normalizing the result. A favourable embodiment of this inventive method is characterized in that D= e j2π (N+1) , for obtaining a well known Hanning weighting. A favourable embodiment according to another aspect of the invention is characterized in that the calculation of a partial transformation contains the steps of subtracting from the previously computed transformation the product of X £ and the first column of the matrix and adding the product of X i+N and the next column of an extended matrix, of which added columns have the property that the (i+l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a vector which is the inverse of the fixed correction vector. This method may be used advantageously when the phase of the transform result is not important, which is true for most applications, and it saves one set of multiplications for each partial transformation. Another very favourable embodiment of the invention, which may for some applications even further reduce the number of calculations, is characterized in that a row of M-bits binary numbers X ..,X N ,... is split-up in M rows of one bit binary numbers, that a transformation is performed separately on each of the M rows and that the results are combined in a weighted addition. The advantage is that the three sets of multiplications and three sets of additions, necessary for correcting the previously obtained result, collapse to one multiplication and two conditional additions. If the phase of the transform result is not important, then the correction can be left out, which saves one conditional addition. The invention also relates to a linear transformer, designed for the execution of a method as described above, and more in particular for the execution of a Fourier transformation . The invention will now be illustrated with reference to the following figures, where: Fig. 1 represents a linear transformer following the current state of the art; Fig. 2 represents the weighting of matrices ϋ" , U' ' , and U' /f with real weighting values; Fig. 3A represents a weighted transformer with real weighting values; Fig. 3B represents a weighted transformer with complex weighting values; Fig. 4 represents a linear transformation which is split-up in M partial transformations. Fig 1. represents a linear transformer according to the state of the art, whereby an analog to digital converter 1 periodically converts an analog signal into a digital signal. The row of measured values is stored in a memory 2. Every time a new value is added to the memory 2, a linear transformer 3 transforms the new row, of which one value has disappeared and one value has been added, into a row of new transform results, which new transform results are stored in a memory 4 for subsequent use. Transformer 3 is arranged such that for obtaining a new transform result, the previous transform result is corrected. This correction is illustrated with the help of a few examples, in which N is chosen to be 4, for ease of illustration. A possible linear transformation (α i(j ) , operating on a row of numbers I o r I l r . . . . and producing a row of numbers U 0 , O l f . . . . can be written as: U 2 α _o α_ι α 22 α 23 ι 2 u 3 α 3 o α 3 ι α 32 α 33 ι 3 U 4 I 4 The row I t is for example a row of measurements originating from an analog to digital converter and is represented as a set of 12-bits binary numbers. The row Ui can be a spectrum derived from the row 1^ The transformation is performed on the row I in a well-known manner by multiplying it with the matrix (α i(j ) . This computation requires 16 multiplications and 12 additions, according to the state of the art. Once a transform result is available, the next transform result can be obtained with a minimum of computations, if the matrix has the special property that the (i-l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector. This is in particular true for the Fourier transformation, which may be represented by a matrix: w° w° w° w° w° w 1 w 2 w 3 w° w 2 w 4 w 6 w° w 3 w 6 w 9 with W = e "j2π 4 It easily follows that the correction column for this Fourier transformation is: W° W "1 W "2 "3 The new transform result is obtained in three correction steps. First, the effect of I 0 must be eliminated. This is done by subtracting the contribution of I 0 to the earlier result, i.e. I 0 times the first column of the transformation matrix. Then the result must be multiplied with the correction column, which transforms the i th column in the matrix to the (i-l) th column, as a result of which the former addition of columns remains valid in the new situation. Finally the effect of I N , in this example I 4 , must be included. This is done by adding I„ times the last column of the matrix to the result. A Fourier transforma- tion executed in this manner makes it possible to transform continuously a row of measurements, even if N is large. For some transforms applications, one may prefer one calculation after for example two new measurements. For the correction, the effect of the first two measurements must be eliminated in the same manner, then a multiplication must be performed with the second power of the correction column and then the effect of the last two measurements must be included. In many cases only the amplitude of the transform result is of importance, for example when a spectrum is determined. In that case the second step, the multiplication with the correction vector, can be omitted. The multiplication of the next measurement value is in this case performed with a continually changing last column, instead of a fixed last column, which is selected cyclically from a fixed set of N last-column vectors. This can be performed by multiplying the next measurement value with (N+l) th , (N+2) th , (N+3) th column and so on. For that purpose the matrix can be extended in an obvious way, by adding columns, making use of the correction vector for generating these new columns. In this way a new transformation is obtained with only 2xN parallel sets of multiplications or, in the case of the DFT, with only N parallel sets of multiplications. More in general the methods described above with reference to the Fourier transformation can be used for all kinds of transformations that may be represented by a matrix for which the (i-l) th column can be obtained by multiplying the i th column with a fixed correction column. This observation forms a basis for the addition of a weighting function to the method described, which significantly broadens the field of application. The weighting is introduced into the matrix by multiplying the columns with suitably chosen weighting constants. Also for a weighted matrix the requirement holds that the (i-l) th column can be obtained by multiplying the i th column with a fixed correction column. It is immediately clear then that the weighting constant for the (i-l) th column must be obtained by multiplying the weighting constant of the i th column with a constant C. For a real constant C the choices are: C<1, C=l or C>1. For C=l no weighting is obtained. For positive C<1 the amplitudes of the successive columns of the weighted matrix will increase. For C>1 the amplitudes of the successive columns of the weighted matrix will decrease. We define a new matrix U' derived from the old NxN matrix U in the following way: the first column is multiplied by c t(1 - N>/21 , the second with c tl+!1 - N) 2) , the third with c [2+<1 - N) 2) , ... and the last with c [(N - 1) + (1-N)/21 . We further define a new matrix U' ' derived from the old NxN matrix U in the following way: the first column is multiplied by c ~t(1-N, 21 , the second by c- I1+(1 - N) 2) , the third with cr I2+(1 - N) 21 ... and the last with cJ [ (N - 1) + (1 - N) 21 . With for example C=0.8 is U 1 a matrix with a skew weighting, for which -the amplitude of the first column is the largest of the column amplitudes, the amplitude of the second column is smaller and the amplitude of the last column is the smallest. For U' ' on the other hand the first column amplitude is small and the last column amplitude is large. For most practical applications the column amplitudes of the matrix U' are identical to the column amplitudes of the matrix U' 1 , but with the columns arranged in reversed order. We now define a weighted matrix as U'' ,: = kU - U' -U' ' . The corresponding weighting functions U', U' ' and U' 1 ' are shown in Fig. 2 for N=64, C=0.97 and k=3. The actual weighting function U' 1 ' is symmetric and for this value of C nearly null on the extreme ends. A weighting function on a pedestal is easily obtained by choosing a different value for C, while the value in the centre may be corrected by selecting a different value for k. For a small N one must select C smaller in order to obtain a sufficient weighting. For N=8 for example, C=0.7 produces a good weighting. Fig. 3A shows a weighted transformator 3 with real weighting values, in which now three transformations have to be performed, namely a transformation with the matrix U', a transformation with the matrix kU and a transformation with the matrix U'', after which the result -U'+ kU - U' ' can be determined. For the transformations U' en ϋ" the correction columns that are used for correcting an earlier value in order to obtain an actual value are now respectively: C "1 W° C W° C "1 W '1 and C W "1 C _1 W -2 C W "2 C _1 W "3 C W "3 Alternatively we may define a new matrix ϋ' derived from the old NxN matrix U in the following way: the first column is multiplied by e j2π/(N+1) , the second with e 2j2π (N+1) ... and the last with e Nj2π (N+1> . We further define a new matrix U' ' derived from the old NxN matrix U in the following way: the first column is multiplied by e "j2π/(N+1) , the second by e -2j2«/«H+i) > #> and the last wj _ th e -Nj 2π (N + ιi ιWe now define a weighted matrix as ϋ'''= kU - AU' -AU''. When we select k=0.5, A=0.25, then we obtain the well known Hanning weighting. With other selections, most of the popular weightings can be realized, for example a weighting on a pedestal. Fig. 3B represents a weighted transformer with complex weighting values, in which now three transformations have to be performed, namely a transformation with the matrix AU', a transformation with the matrix kU and a transformation with the matrix AU'', after which the result -AU'+ kU - AU' ' can be determined. For the transformations U' en U" the correction columns that are used for correcting an earlier value in order to obtain an actual value are now respectively: e -j 2π/ (N+l ) røO e J 2π/ (N+l ) ^0 e - j 2π (M+1) W "1 and e 2π/ (N + l ) w -ι e -j 2ιt/ (N+l) rø-2 e 2π/ (N+l ) 2 e -j 2π/ (N+l) rø-3 e J 2π/ (N+l ) rø-3 It goes without saying that the definitions as given here for the matrices U' en U' ' are only examples and that these examples in fact represent classes of weighted matrices. Fig. 4 represents an example of a linear transformer according to the invention, whereby an analog to digital converter 1 periodically converts an analog signal into a four bits digital signal. In this example, each bit position in the set of four-bit measurement values is processed as a separate, one-bit signal. To accomplish this, the four one-bit signals are written to four memories 5, 6, 7, 8, after which four identical linear transformers 9, 10, 11, 12 transform these one-bit signals into four rows of intermediate results. These four rows of intermediate results are weighted by the weight factors 8, 4, 2, and 1 in multipliers 13, 14, 15, 16 and summed in an adder 17, after which the row of transformed measurement values is stored in memory 4 for subsequent use. Due to the fact that the multipliers 13, 14, 15, 16 multiply with the weight factors 8, 4, 2, and 1, they effectively shift the intermediate results by 3, 2, 1, or 0 bits. Furthermore, it should be noticed that the linear subtransformers 9, 10, 11, 12 are identical, so it is feasible to use a single linear subtransformer to process all four of the one-bit signals sequentially. In this example a linear transformer transforms one-bit signals, which implies that the correc- tion of a previously obtained transformation contains the steps of conditionally subtracting the first column of the matrix, multiplying the result with the correction vector and conditionally adding the last column of the matrix. If only the amplitude of the transform result is of importance, then the multiplication with the correction vector can be omitted as explained earlier. In that case only a conditional subtraction and a conditional addition are required for generating a new transform result.

Claims: Claims 1. Method for performing an N-point linear weighted transformation with N-2, 3,..., upon a row of numbers X X ,..,X N , which N-points transformation can be performed by multiplying the row of numbers with a matrix which has the property that the (i+l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector, characterized in that a weighted transformation can be realised or approximated by a sum of at least a partial transformation U' , a partial transformation U' ' , and a partial transformation kU, in such a way that each partial transformation has the property that an (i+l) th column from a matrix that represents the partial transformation can be obtained from the i th column of the same matrix by multiplying the i th column with a fixed correction vector. 2. Method according to claim 1, characterized in that the elements of the correction vector of a partial transformation can be obtained by dividing the elements of the second column of the partial transformation matrix by the corresponding elements of the first column of the partial transformation matrix. 3. Method according to claim 1, characterized in that the matrix of the partial transformation U' is obtained by multiplying the successive columns with powers of a real constant C, with C<1, and that the matrix of the partial transformation U' ' is obtained by multiplying the successive columns with powers of a real constant C "1 . 4. Method according to claim 1, characterized in that the matrix of the partial transformation U' is obtained by multiplying the successive columns with powers of a complex number D, with D= e jx and that the matrix of the partial transformation U' ' is obtained by multiplying the successive columns with powers D "1 . 5. Method according to claim 4, characterized in that £)- e J2π/(N+l) ^ 6. Method according to one of the claims 1-3, characterized in that the calculation of a partial transformation contains the steps of subtracting from the previously computed transformation the product of X A and the first column of the matrix and adding the product of X i+N and the next column of an extended matrix, of which added columns have the property that the (i+l) th column can be obtained from the i th column of the same matrix by multiplying the i th column with a vector which is the inverse of the fixed correction vector. 7. Method according to one of the previous claims, characterized in that a row of M-bits binary numbers X l r . . , X n , . . . is split-up in M rows of one bit binary numbers, that a transformation is performed separately on each of the M rows and that the results are combined in a weighted addition. 8. Linear transformer, designed for the execution of a method as claimed in one of the previous claims.

Inventors: SCHOLZ JOHN ARTHUR, SCHOLZ, JOHN, ARTHUR
Applicants: SCHOLZ JOHN ARTHUR, SCHOLZ, JOHN, ARTHUR
Application year: 2001
Main classification: G06F17
IPC codes: G06F17