Closed lmoffatt closed 3 months ago
1st I will test if logLikelihood and diff_logLikelihood returns the same logL.
I did it and it returned the same value.
Then there might be something wrong with the levenberg.
I looked into the formula and it was wrong:
double logA = (logL_candidate + logP_backward ) - (logL_current +logP_forward );
instead of the right code:
double logA = (logL_candidate + logP_forward ) - (logL_current + logP_backward);
I was wrong with the correction, the original proposition
double logA = (logL_candidate + logP_backward ) - (logL_current +logP_forward );
was the right one.
I found out where the problem was: in thermo jump specifically in the iteration through betas.
compared to thermo it does not perform well.