oshaughn / research-projects-RIT

Clean version of research-projects, just with ILE
MIT License
14 stars 14 forks source link

Refactoring in prep of distance marginalization #58

Closed dwysocki closed 3 years ago

dwysocki commented 3 years ago

We think that the optimized marginalization schemes will just need the squares of kappa and rho. So we computed these instead of accumulating them straight into the log likelihood, which takes the form

log(L) = const + kappa^2 - (1/2) rho^2

Now we pass kappa_sq and rho_sq into a likelihood helper, which at the moment just returns kappa_sq - 0.5*rho_sq, but we can swap that with (e.g.) the distance-marginalized likelihood.