You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to run qcinv and compare its output to the true solution when using a noise covariance matrix porportional to the identity matrix and no skymap - in this case the matrix A.T N^-1 A + C^-1 is diagonal.
Using a stopping criterion of an error lower than 1e-6, I am finding unexpected discrepencies between the solution found by qcinv and the one computed directly. Here you will find a minimal code:
Note that with such a choice of beam, noise and resolution, the errors are acceptables on most of the pixels. Here are plots of the map and boxplot (with and without outliers) of relative differences:
Note that keeping all values equal but reducing the resolution increases the errors. For example, with nside = 32, we get the following graphics:
Now the fractional errors are about 1%, which is pretty big... Keeping a high resolution but increasing the noise level has the same effect.
Have you encountered such a behavior ? Am I missing something and using qcinv the wrong way ?
Thank you,
Gabriel.
The text was updated successfully, but these errors were encountered:
The matrix A.T N^-1 A matrix is never exactly diagonal (the pixels have finite size and the spherical harmonics are not exactly orthogonal on the pixelized sphere). One does expect some difference that goes away increasing the resolution.
Thank you for replying quickly ! Okay that makes sense.
The same behavior happens when keeping the same resolution with a greater noise. For example, keeping NSIDE = 512 but taking a noise level 10 times greater, we get:
Now most of the errors are of the order of few percents. Do you have an idea why increasing the noise level increases the errors ?
Intuitively, I would say that increasing the noise also increases the conditionning number of the matrix A^T N^-1 A + C^-1. However, even if this matrix is not perfectly diagonal, the diagonal preconditioner should be good enough to cancel problems due to bad conditioning, don't you think ?
Hi,
I have been trying to run qcinv and compare its output to the true solution when using a noise covariance matrix porportional to the identity matrix and no skymap - in this case the matrix A.T N^-1 A + C^-1 is diagonal.
Using a stopping criterion of an error lower than 1e-6, I am finding unexpected discrepencies between the solution found by qcinv and the one computed directly. Here you will find a minimal code:
Note that with such a choice of beam, noise and resolution, the errors are acceptables on most of the pixels. Here are plots of the map and boxplot (with and without outliers) of relative differences:
Note that keeping all values equal but reducing the resolution increases the errors. For example, with nside = 32, we get the following graphics:
Now the fractional errors are about 1%, which is pretty big... Keeping a high resolution but increasing the noise level has the same effect.
Have you encountered such a behavior ? Am I missing something and using qcinv the wrong way ?
Thank you,
Gabriel.
The text was updated successfully, but these errors were encountered: