Page 1 of 1
Complex matrix to real matrix
Posted: Sun Apr 15, 2012 4:43 am
by g_defi
Dear Tom,
I am seeking the most convenient way to transform a complex matrix into a real matrix in a formula (frml)?
Can I use something like ewise instruction?
Best regards.
Re: Complex matrix to real matrix
Posted: Mon Apr 16, 2012 12:21 pm
by TomDoan
I'm not sure what you mean by "in a FRML". If you mean with something like an EWISE, yes:
dec rect r(n,n)
ewise r(i,j)=%real(c(i,j))
Re: Complex matrix to real matrix
Posted: Tue Apr 17, 2012 9:42 am
by g_defi
Apologize if I was not clear.
I call the %logdensitycv function in a multivariate case. Since my estimator operates in frequency domain, I try to transform my transfer function (that is a complex matrix) into a real matrix:
Code: Select all
frml logl = %logdensitycv(transfer,periodogram,(float(n)/m))
where "transfer" and "periodogram" are symmetric complex matrix that I want to turn into real matrix.
Re: Complex matrix to real matrix
Posted: Tue Apr 17, 2012 1:28 pm
by TomDoan
The complex matrix equivalent of %LOGDENSITYCV would require arguments which are the spectral density implied by the model, the periodogram and the number of observations. The transfer function in this case would be a SERIES[CVECTOR] instead, and you would use that combined with the model spectral density in a complex equivalent of %LOGDENSITY. Which of the two do you have?
Re: Complex matrix to real matrix
Posted: Tue Apr 17, 2012 5:18 pm
by TomDoan
The attached function computes the log density of a complex Normal.
Re: Complex matrix to real matrix
Posted: Wed Apr 18, 2012 4:19 am
by g_defi
Thanks for your reply.
Unfortunately I think I cannot use the complex log density of Normal because I perform a Whittle approximation of the Maximum Likelihood.
My problem is like trying to modify the FRACTINT.RPF file in order to estimate a bivariate VARFIMA(1,d,0).
Re: Complex matrix to real matrix
Posted: Thu Apr 19, 2012 1:16 pm
by TomDoan
This extends %LOGDENSITYCV to complex matrices. That looks like what you want.
Re: Complex matrix to real matrix
Posted: Thu Apr 19, 2012 2:56 pm
by g_defi
Yes it is. Thank you very much for your help!
Best regards.