pint.scripts.event_optimize.marginalize_over_phase

pint.scripts.event_optimize.marginalize_over_phase(phases, template, weights=None, resolution=0.0009765625, minimize=True, fftfit=False, showplot=False, lophs=0.0, hiphs=1.0)[source]

Find the best fit pulse profile

a pulse profile comprised of combined photon phases. A maximum likelood technique is used. The shift and the max log likehood are returned. You probably want to use “minimize” rathre than “fftfit” unless you are only sampling very close to your known min.