We present n-sized matrix pencil methods for the spectral analysis of n-term trigonometric, hyperbolic and sinc linear sums, a problem which occurs frequently in vibration analysis, digital signal and image processing, direction of arrival and radio astronomy. The new matrix pencils replace the traditional 2n-sized matrix pencils used in exponential spectral analysis, which result from re-expressing the considered functions as sums or differences of exponentials. The matrices in the linear pencils are filled using 2n samples of the trigonometric, hyperbolic or sinc linear sums. The frequency content is extracted from the samples by solving a generalised eigenvalue problem, and the linear coefficients in the sums are computed from the right generalised eigenvectors. The latter option is presented for each of the trigonometric, hyperbolic and sinc cases. We numerically illustrate the novel method with an example from texture analysis.
Introduction
Exponential analysis, or the fitting of equidistantly sampled data by a function of the form
j=1∑nαjexp(ϕjx),αj,ϕj∈C,x∈R,(1)
essentially dates back to the late 18th century, when de Prony [11] published his exponential interpolation method. In the 20th century a matrix pencil algorithm was published [6] for the identification of the nonlinear parameters ϕj from generalised eigenvalues of a linear pencil of n×n matrices. The linear parameters αj were recovered in a subsequent step by solving a Vandermonde-structured linear system. We show here how they can also be obtained from the computation of the eigenvectors of the pencil.
In the meantime exponential analysis was generalised to functions other than the exponential or the power function [9, 10], and to higher dimensions, but often without an accompanying matrix pencil version. The basics from de Prony [11] and Hua and Sarkar [6] are recapped in Section 2. In the subsequent sections a matrix pencil algorithm is developed for parametric models of the type
and their multivariate counterparts, where all linear and nonlinear parameters are real. How to include phase shifts in all of the above models is indicated when discussing the trigonometric generalisation.
Note that with nc, ns and n indicating respectively the numbers of nonzero distinct terms in (2), (3) and (4), it is not only tacitly assumed that the αj, αj1 and αj2 are all nonzero and that the ϕj1 and the ϕj2 are mutually distinct, as in the exponential case of Section 2, but also that ϕj=±ϕi for j=i and that in the odd parts ϕj=0. Otherwise certain (hyperbolic) cosine or (cardinal) sine terms would collide or vanish and certain matrices in the subsequent theorems would become singular. This assumption therefore holds throughout Sections 3, 4 and 5, wherever required.
Matrix pencil method for exponential analysis
Let us consider the nonlinear interpolation problem
j=1∑nαjexp(ϕjxk)=fk,k=0,…,2n−1,(5)
where xk=kΔ with Δ=0 and the ϕj are mutually distinct and satisfy the Nyquist condition (Nyquist [8])
j=1,…,nmax∣ℑ(ϕj)Δ∣<π,(6)
where ℑ(⋅) denotes the imaginary part of a complex number. In the transition to real models in the subsequent sections, the Nyquist constraint becomes maxj=1,…,n∣ϕjΔ∣<π. In (5) the xk and fk are given and the αj and ϕj are to be determined. Often also n is unknown.
Exponential analysis is actually a reconstruction problem rather than an approximation technique. The derivation of what is basically Prony’s method in de Prony [11] is based on the assumption that the data fk are taken from a function f(x) that is of the form (1). Then the unknown parameters αj and ϕj can be extracted from such data fk as follows. If we denote Φj:=exp(ϕjΔ), then it is clear that the data fk are structured as
fk=j=1∑nαjΦjk,k=0,…,2n−1.(7)
We now want to obtain the values Φj, j=1,…,n and αj, j=1,…,n from the 2n samples fk. From Φj the unknown ϕj can easily be deduced because ∣ℑ(ϕj)Δ∣<π and hence no periodicity problem arises. Also, since the ϕj are mutually distinct, the Φj are mutually distinct and hence the Vandermonde matrix in (9) below is regular. In addition to computing Φj and αj, we indicate what can be deduced about n. Knowledge of the latter is crucial for the success of the algorithm. Temporarily we assume that n is known.
where Vn, Dα and DΦ respectively denote the square Vandermonde matrix
Vn=1Φ1⋮Φ1n−11Φ2⋮Φ2n−1⋯⋯⋯1Φn⋮Φnn−1
and the diagonal matrices Dα=diag(α1,…,αn), DΦ=diag(Φ1,…,Φn), it is straightforward to see that the Φj can be obtained as generalised eigenvalues [6, 4]. The Φj satisfy
det(Hn(1)−ΦjHn(0))=0,j=1,…,n.(10)
The coefficients αj in the model (1) can be obtained from any set of n interpolation conditions taken from (7). With Φ1,…,Φn computed from (10), the remaining equations in (7) are linearly dependent. However, usually the full system (7) is solved in the least-squares sense. Another way to obtain the linear coefficients αj is the following. Let vj be a right eigenvector of the generalised eigenvalue problem (10) and let In be the n×n identity matrix and ej the vector with 1 at position j and zero elsewhere. Then from (9) and (10) we see that
VnDα(DΦ−ΦjIn)VnTvj=0,j=1,…,n(11)
and thus that, with the matrix DΦ−ΦjIn being diagonal, the vector VnTvj is a multiple of ej or
vj=γjVn−Tej,j=1,…,n.
where VnT(v1,…,vn)=diag(γ1,…,γn). Consequently
Hn(0)vj=αjγjVnej,j=1,…,n
from which we can obtain and average n estimates for the αj as
αj=meani=1,…,nγjΦji−1(Hn(0)vj)i,j=1,…,n.
Now what can be said about n? Let ∣⋅∣ denote the determinant det(⋅) of a matrix. In the noise-free case, its value can be nailed down quite precisely. We read in Henrici [5] and Baker and Graves-Morris [1] that on the one hand, for N<n and r≥0, ∣HN(r)∣ is only accidentally zero, depending on the value of Δ, while on the other hand, for N>n and r≥0, ∣HN(r)∣ is always zero, irrespective of the value of Δ. Most importantly, for N=n, r≥0 and Φi=Φj when i=j, one has ∣Hn(r)∣=0 whatever the value of Δ. In order to inspect ∣HN(r)∣ for N>n, additional samples up to fr+2N−2 need to be provided, in other words at least the additional sample f2n (in case r=0 and N=n+1). A nice discussion, based on algebraic arguments, is presented in Kaltofen and Lee [7]. How n can reliably be determined when working with noisy data is discussed in Briani, Cuyt, Knaepkens and Lee [2].
Matrix pencil method for the trigonometric model
We now consider the reconstruction of functions of the form (2). If either ns=0 or nc=0, then it is sufficient to collect data at respectively xk=kΔ for k=0,…,2n−1 or at xk=kΔ for k=1,…,2n, where n=max(nc,ns), because cos(−ϕjkΔ)=cos(ϕjkΔ), sin(−ϕjkΔ)=−sin(ϕjkΔ) and sin(0)=0. Since we assumed that ϕj=±ϕi for j=i and that in the odd part ϕj=0, we know that under the Nyquist constraint (6), the absolute values 0≤∣ϕjΔ∣<π are mutually distinct and that ϕjΔ=0 is excluded in sine sums.
When ncns=0 then n=nc if nc>ns and n=ns if nc≤ns. In the former case, we collect the data fk by sampling (2) at xk=kΔ with k=−2n+1,−2n+2,…,0,…,2n−2,2n−1 and in the latter case by sampling at xk=kΔ for k=−2n,…,−1,0,1,…,2n. With these samples we then separate the even and odd parts of (2) by rewriting
Of course, in general, both nc and ns are unknown and so, in practice, n is overestimated. Then the first sampling scheme can be used in all situations. After obtaining the samples (fk+f−k)/2 of the even part and the samples (fk−f−k)/2 of the odd part, we can proceed with the of (2) where respectively ns=0 and nc=0.
In both cases, from here on, we call the unknown coefficients αj, the unknown frequencies ϕj and the samples of the even or odd part gk with the number of terms being denoted by n. We reserve the notation fk for samples directly taken from (2), (3) or (4). Before doing so, we point out how the new method differs from the mere interpolation of (2) by 2nc+2ns complex conjugate exponentials.
First of all, instead of requiring 4nc+4ns samples to fit the complex conjugate exponential terms, only half as many samples are needed, more precisely 4max(nc,ns)∓1. Also, the matrix size of the structured generalised eigenvalue problems is reduced from 2(nc+ns)×2(nc+ns) for the exponential model with complex conjugate terms, to nc×nc for the even part and ns×ns for the odd part, which reduces the computational complexity.
The cosine case: even part (n = nc)
Besides the Hankel-structured matrix Hn(r) in (8), now filled with samples gk from the even part of (2), we introduce the following Hankel and Toeplitz-structured matrices:
When r=0, the first two matrices in the sum coincide and the latter two do as well.
We emphasise that working directly with the cosine sum, instead of expressing it in terms of exponentials as cosx=(exp(ix)+exp(−ix))/2, allows us to reduce the size of the matrices involved in the generalised eigenvalue problems.
Theorem 1.The structured matrix Cn(r) factorises as
Proof. The proof is a mere verification of the matrix product entry at position (k,ℓ) for k,ℓ=1,…,n in combination with the use of the trigonometric sum formulas. Note that the matrix Wn is regular because the ∣ϕjΔ∣ are mutually distinct. We have
which opens the door to the generalised eigenvalue problem formulation
(Cn(1))vj=cos(ϕjΔ)(Cn(0))vj,j=1,…,n,(12)
where the vj are generalised right eigenvectors. Because gk=g−k, setting up (12) only takes the 2n samples gk, k=0,…,2n−1. Under condition (6), the ϕj can unambiguously be extracted from the generalised eigenvalues cos(ϕjΔ), up to an irrelevant sign.
The coefficients αj, j=1,…,n are computed from an n×n linear subsystem of the interpolation conditions
j=1∑nαjcos(ϕjkΔ)=fk,k=0,…,2n−1.
To extract the αj from right eigenvectors vj, we first obtain, as in § 2, that WnTvj is a multiple of ej and thus conclude that Cn(0)vj equals
Cn(0)vj=αjγjWnej,j=1,…,n
with WnT(v1,…,vn)=diag(γ1,…,γn). This gives the formula
Proof. The proof is again a verification of the matrix product entry, at the position (k,ℓ) with k,ℓ=1,…,n, in combination with the use of the trigonometric sum formulas. Note that the matrices Un and Wn are regular because the ∣ϕjΔ∣ are mutually distinct and ϕjΔ=0. We have
and thus that the values cos(ϕjΔ), j=1,…,n are obtained as the generalised eigenvalues of the problem
Sn(1)vj=cos(ϕjΔ)Sn(0)vj,j=1,…,n.(13)
We point out that setting up this generalised eigenvalue problem requires samples at x−n+1,…,x2n. Since gk=−g−k and g0=0 it only costs 2n samples.
From the values cos(ϕjΔ) we can extract ±∣ϕj∣Δ, without specification of the sign though. This, however, does not cause a problem, as the odd part of (2) remains identical whether the terms in the model are αjsin(ϕjx) or (−αj)sin(−ϕjx). So after extracting the ∣ϕj∣ from the generalised eigenvalues cos(ϕjΔ), we compute the values ±sin(ϕjkΔ) and solve for the ±αj, j=1,…,n from an n×n linear subsystem of the interpolation conditions
j=1∑nαjsin(ϕjkΔ)=fk,k=1,…,2n.
Generalised eigenvectors vj are again multiples of Wn−Tej and so we can also compute the linear coefficients αj from
Sn(0)vj=αjγjUnej,j=1,…,n
where WnT(v1,…,vn)=diag(γ1,…,γn), as
αj=meani=1,…,nγjsin(iϕjΔ)(Sn(0)vj)i.
Dealing with phase shifts
In each of (2), (3) and (4) phase shifts can be included. Without loss of generality, we here describe how to deal with them in the multi-sinusoidal model
j=1∑nαjsin(ϕjx+ωj),∣ωj∣<π/2.(14)
When using the classical complex exponential approach, each term in (14) is rewritten as
leading to a (2n)-term model, requiring 4n samples for the identification of the αj,ϕj,ωj, j=1,…,n. With the current approach, each term in (14) is rewritten as
αjcos(ωj)sin(ϕjx)+αjsin(ωj)cos(ϕjx).
Its even and odd parts respectively equal αjsin(ωj)cos(ϕjx) and αjcos(ωj)sin(ϕjx) and each leads to an n-term trigonometric problem from which the frequencies ϕj and the linear coefficients αjcos(ωj), αjsin(ωj) can be identified, given either 2n samples of (14) for x>0 or 2n samples of (14) for x<0. Then ωj is computed from tan(ωj) and αj from the two extracted linear coefficients.
Matrix pencil method for the hyperbolic and sinc models
The hyperbolic case
For the reconstruction, through interpolation, of expression (3), one proceeds in a similar way. Let n=max(nc,ns) and sample (3) at the points xk=kΔ for k=−2n,…,−1,0,1,…,2n. Since we are not dealing with periodic functions now, condition (6) need not be imposed, but for regularity of the structured matrices, we maintain the assumption that in Wn the absolute values ∣ϕjΔ∣ are mutually distinct and that in Un also ϕjΔ=0 is excluded. Just as earlier, we separate the even and odd parts of the model by constructing data (fk+f−k)/2 for the hyperbolic cosine part and (fk−f−k)/2 for the hyperbolic sine part.
With these data, the matrices Cn(r) and Sn(r), defined in the previous section and filled with the samples gk of respectively the even or odd part of (3), now factorise as follows.
Theorem 3.The structured matrix Cn(r) factorises as
Proof. In the proofs one merely needs to take into account the different addition and subtraction rules
cosh(A+B)=cosh(A)cosh(B)+sinh(A)sinh(B)
cosh(A−B)=cosh(A)cosh(B)−sinh(A)sinh(B)
and
sinh(A+B)=sinh(A)cosh(B)+cosh(A)sinh(B)
sinh(A−B)=sinh(A)cosh(B)−cosh(A)sinh(B).
The sinc function case
The sinc function is classically defined as sinc(x)=sin(x)/x. Our interest is in the reconstruction of model (4) under condition (6). With the samples fk of (4) taken at xk=kΔ for k=1,…,2n we construct the values
Fk:=kΔfk,k=1,…,2n.
Then the interpolation problem
j=1∑nαjsinc(ϕjxk)=fk,k=1,…,2n
can be rewritten as
j=1∑n(ϕjαj)sin(ϕjkΔ)=Fk,k=1,…,2n.(15)
From this rewrite, the parameters ϕj and αj can be obtained by applying the method from § 3.2. Since the ϕj are obtained first and separately from the αj, it is straightforward to extract the αj from the coefficients αj/ϕj in (15).
Multivariate versions
Each of the models (2), (3) and (4) can be generalised to the multivariate case, similar to the multivariate generalisation in Cuyt and Lee [3] of the exponential model (5), although some extra details need to be taken care of when dealing with the base terms in (2), (3) or (4).
Without loss of generality we present the bivariate case and explain the interpolation of the even part of the multivariate version of (2),
g(x,y)=j=1∑nαjcos(ϕjx+ψjy),
leaving a similar treatment of the odd part of (2), as well as (3) and (4) to the reader. Just as in the univariate case, the linear coefficients αj, the frequency components ϕj and ψj are unknown. The purpose is to extract them from a minimal number of samples, in terms of a generalised eigenvalue problem. For simplicity, we assume in what follows that n is known.
Before we continue, we point out that the analysis of the even part, when expressed in terms of N=2n complex exponentials, requires 3N=6n samples. The new approach brings this down to only 4n.
We define two linearly independent sample vectors Δ=(Δ1,Δ2) and δ=(δ1,δ2) satisfying
In the multivariate generalisation, the role of the argument ϕjΔ in the previous sections is taken by the inner product
Pj:=ϕjΔ1+ψjΔ2.
Analogously we define the inner product
Qj:=ϕjδ1+ψjδ2.
In the multivariate setting we assume that the (ϕj,ψj), j=1,…,n are mutually distinct pairs and that no addition or subtraction of frequency pairs gives zero. In addition we need Δ=(Δ1,Δ2) to guarantee to be such that the ∣Pj∣ are mutually distinct. Let us sample
with g−k=gk and G0,+=G0,−. As in (12) we find that the cos(Pj), j=1,…,n can be obtained from the generalised eigenvalue problem
(Cn(1))vj=cos(Pj)(Cn(0))vj,j=1,…,n,(17)
where the matrices Cn(r) are now filled with the bivariate samples gk in which the univariate ϕjΔ is replaced by the bivariate Pj. The linear coefficients αj, j=1,…,n are obtained from an n×n subsystem of
j=1∑nαjcos(kPj)=gk,k=0,…,2n−1,(18)
or from the right generalised eigenvectors vj of (17). Because of (16), ∣Pj∣ can be extracted uniquely from cos(Pj). Since
We emphasise that, with the ∣Pj∣ mutually distinct, Vn is regular. From cos(Qj) again ∣Qj∣, j=1,…,n can be extracted. It remains to discuss how to identify the parameters ϕj,ψj, j=1,…,n in g(x,y) from the knowledge of ∣Pj∣,∣Qj∣, j=1,…,n. At first sight, there are four solutions from solving the 2×2 linear systems
{Δ1ϕj+Δ2ψj=±∣Pj∣,δ1ϕj+δ2ψj=±∣Qj∣,
unless some additional information on the sign of Pj and Qj is provided. Since g(x,y) consists of cosine terms, the combinations (+,+) and (−,−) deliver the same model, and similarly for (+,−) and (−,+). Therefore only two possibilities remain.
In order to identify the correct solution between these two, we require only two more samples while reusing the coefficient matrix Vn at the same time. When adding the samples G−1,− and Gn,+ and making use of the identities
Since we can assume that not both Pj and Qj equal zero, because otherwise ϕj=0=ψj, we check whether the solution of (+,+) or (+,−) matches ∣Pj+Qj∣, extracted from cos(Pj+Qj). Note that it is impossible for Pj+Qj to equal Pj−Qj and at the same time for −Pj−Qj to equal Pj−Qj unless both Pj and Qj are zero.
When n is small and sample collection is expensive, one may for instance prefer to only collect the sample Gn,+ and not collect the sample G−1,−, thereby losing the possibility to reuse Vn. In fact, because of the identity
Formula (20) is used to transform the values cos(kPj) of (18) into those needed in Wn. Note that for k=0, (20) has cos2(Pj/2) in the left-hand side. Since ∣Pj∣≤π, we have ∣Pj/2∣≤π/2 and hence we know that cos(Pj/2)≥0. For k>0, (20) is used by gradually incrementing k from 1 to n−1.
Numerical illustration
To illustrate the use of the new matrix pencil formulations for the trigonometric spectral analysis problems, we consider a texture denoising and decomposition problem of the form
f(x,y)=j=1∑nαj(cos(ϕjx+ψjy)+sin(ϕjx+ψjy)),
where f(x,y) is only known through its samples, namely the pixel values of the texture image in Figure 1, and not through its function statement, since the parameters ϕj,ψj,αj, j=1,…,n are to be revealed. To solve this problem we apply the technique explained in § 5 to the analysis of f(x,y) given here. The illustration is merely meant as a proof of principle.
Figure 1. Noise-free texture (512 × 512 left and zoomed-in view on the right).
Note that when using either (12) or (13), the involved Hankel and Toeplitz matrices are filled with samples of either the even part or the odd part of the texture image. So the Hankel and Toeplitz matrices in the cosine case are not identical to the Hankel and Toeplitz matrices in the sine case. We proceed with (12) and hence define
gk=21(fk+f−k),fk=f(kΔ1,kΔ2),
in order to obtain the values cos(Pj), j=1,…,n as the generalised eigenvalues of the generalised eigenvalue problem
to compute the cos(Qj). With (Vn)kj:=cos((k−1)Pj), we find that the cos(Qj), j=1,…,n are obtained from (19) and the αj, j=1,…,n from (18). For our image we have n=2 and
(ϕ1,ψ1)=(0.3π,0.15π),α1=1,
(ϕ2,ψ2)=(0.2π,0.35π),α2=1.
In practice, the collected data are of course often contaminated with noise and then the above numerical linear algebra problems are solved in the least-squares sense. For their rectangular m×n counterparts Cm,n(r) and Sm,n(r) the factorisations given in Theorems 1–4 remain valid, with only the first factor taking size m×n. Let us add 10 dB of white Gaussian noise to the image, resulting in Figure 2.
Figure 2. Noisy texture (512 × 512 left and zoomed-in view on the right).
Instead of working with the matrices Hn(r) and Tn(r) in (21) where r=−1,0,1, we consider their tall rectangular m×η versions Hm,η(r) and Tm,η(r) having m rows and η columns with m≥η≥n. The η−n additional terms model the noise present in the data.
Let the pixels be indexed left to right −255,…,0,…,256 and likewise from top to bottom. We choose (Δ1,Δ2)=(1,0) and (δ1,δ2)=(0,1) and sample the image for simplicity on 11 full lines (which is much more than we need), namely the line y=0 for the samples fk, and the lines y=±5,…,±1 for the samples Fℓ,±. These 11 lines constitute 2.15% of the image. We compose the required gk and Gk,± from the collected pixels. We take m=172 and η=84 and reduce the size of each of the Hankel and Toeplitz matrices involved in the generalised eigenvalue problem to m×2 using their singular value decomposition.
The procedure described in § 5, when applied to the even part of the image in Figure 1, eventually returns the following values
which allow us to restore the noisy image; the result, shown in Figure 3, is visually indistinguishable from the original. After denoising the following minor discrepancy from the original f(x,y) remains:
Figure 3. Noisy texture at the left and denoised texture at the right.
Baker, Jr., G., Graves-Morris, P., 1996. Padé approximants (2nd Ed.). volume 59 of Encyclopedia of Mathematics and its Applications. Cambridge University Press.
Briani, M., Cuyt, A., Knaepkens, F., Lee, W.-s., 2020. VEXPA: Validated EXPonential Analysis through regular subsampling. Signal Processing 177, nr. 107722. doi:https://doi.org/10.1016/j.sigpro.2020.107722. (Published online July 17, 2020.)
Cuyt, A., Lee, W.-s., 2018. Multivariate exponential analysis from the minimal number of samples. Adv. Comput. Math. 44, 987–1002. doi:https://doi.org/10.1007/s10444-017-9570-8. (Published online November 16, 2017.)
References
[1]Baker, Jr., G., Graves-Morris, P., 1996. Padé approximants (2nd Ed.). volume 59 of Encyclopedia of Mathematics and its Applications. Cambridge University Press.
[2]Briani, M., Cuyt, A., Knaepkens, F., Lee, W.-s., 2020. VEXPA: Validated EXPonential Analysis through regular subsampling. Signal Processing 177, nr. 107722. doi:https://doi.org/10.1016/j.sigpro.2020.107722. (Published online July 17, 2020.)
[3]Cuyt, A., Lee, W.-s., 2018. Multivariate exponential analysis from the minimal number of samples. Adv. Comput. Math. 44, 987–1002. doi:https://doi.org/10.1007/s10444-017-9570-8. (Published online November 16, 2017.)
[4]Golub, G., Milanfar, P., Varah, J., 1999. A stable numerical method for inverting shape from moments. SIAM J. Sci. Comput. 21, 1222–1243. doi:https://doi.org/10.1137/S1064827597328315.
[5]Henrici, P., 1974. Applied and computational complex analysis I. John Wiley & Sons, New York.
[6]Hua, Y., Sarkar, T.K., 1990. Matrix pencil method for estimating parameters of exponentially damped/undamped sinusoids in noise. IEEE Trans. Acoust., Speech, Signal Process. 38, 814–824. doi:http://dx.doi.org/10.1109/29.56027.
[9]Peter, T., Plonka, G., 2013. A generalized Prony method for reconstruction of sparse sums of eigenfunctions of linear operators. Inverse Problems 29, 025001, 21. doi:http://dx.doi.org/10.1088/0266-5611/29/2/025001.
[10]Plonka, G., Stampfer, K., Keller, I., 2019. Reconstruction of stationary and non-stationary signals by the generalized Prony method. Analysis and Applications 17, 179–210. doi:https://dx.doi.org/10.1142/S0219530518500240.
[11]de Prony, G.R., 1795. Essai expérimental et analytique sur les lois de la dilatabilité des fluides élastiques et sur celles de la force expansive de la vapeur de l’eau et de la vapeur de l’alkool, à différentes températures. J. Ec. Poly. 1, 24–76.