Skip to content

Allow logtrapzexp to work on a non-uniform grid

Matthew Pitkin requested to merge matthew-pitkin/bilby:fix_logtrapzexp into master

The current implementation of the logtrapzexp function (performing trapezium rule integration in log-space) currently only works for a fixed grid step size. This MR allows it to work with an array of step sizes, which can be non-uniform.

The Grid class is also edited to allow marginalisation on potentially non-uniform grids.

A test suite for the logtrapzexp function is also added.

Merge request reports