simplify_beam

zdm.beams.simplify_beam(logb, omega_b, nbins, thresh=0.0, weight=1.5, method=1, savename=None)[source]

Simplifies a beam to smaller histogram

Thresh is the threshold below which we cut out measurements. Defaults to including 99% of the rate. Simpler! weight tells us how to scale the omega_b to get effective means

method:

1: attempts to place equal probability into each beam bin 2: starts with lowest b-value where cumulative rate above thresh 3: no simplification, returns the full beam! 4: favours the first few bins 5: ignores the data, simply sets omeba_b to 1, b to 1 (e.g. for testing)