mikekatz04 / LISAanalysistools

Apache License 2.0
21 stars 9 forks source link

Adding vallisneri cdf function, polar angle periodic boundary conditions for mismatch calc #5

Closed cchapmanbird closed 3 years ago

cchapmanbird commented 3 years ago

Adding a new function vallisneri_criterion_cdf that generates the mismatch criterion abs(log(r)) cdf seen in Vallisneri 2008 and samples the 90th percentile value, for comparison with a given threshold (typically 0.1). Optionally returns the cdf. Also modifies mismatch_criterion to include a use_gpu optional argument (defaults False) and properly treats polar angle boundary conditions by modifying the polar and azimuthal angle pairs appropriately. This allows for LSA tests to incorporate angular periodicity, which is important for events with angular parameters near the outer edges of [0, 2pi].