Closed legordian closed 10 years ago
Updated by legordian on 2013-04-24 12:22 UTC
Commented by bgrube on 2013-04-25 19:28 UTC This looks good and as far as I can tell should also handle rank > 1 correctly. The only thing that might not work is point 2. I'll look into this.
Commented by bgrube on 2013-04-26 20:10 UTC Should be fixed by [954a65]. Please confirm.
Higher ranks are definitely not a problem, because no fit parameters are created for the null production amplitudes, so they won't be part of the covariance matrix.
Commented by sebastianuhl on 2013-04-26 20:54 UTC Evidences are correctly calculating in the cases I previously observed this error.
Updated by sebastianuhl on 2013-04-29 08:51 UTC
Reported by sebastianuhl on 2013-04-24 10:58 UTC The calculation of the evidence for a massbin with ((I guess) at least one) waves below threshold returns NaN, and prints the following error message:
The error message is printed during the calculation of the determinant of the covariance matrix. The reason for this seems to be that for thresholded waves the rows and columns in the covariance matrix are 0, so that columns and rows are no longer linear independent.
As also the intensity and the error on the intensity for thresholded waves are 0, one further possible source of the NaN is in the call to ROOT::Math::normal_cdf_c with a sigma of 0.
As far as I understand the evidence calculation, the following proposal should still yield a valid evidence:
Please consider the patch in the attachment.