Glitch Distributions
This page contains the documentation for ‘glitch_dist.py’. This module provides methods for sampling glitch parameters from given distributions. The distributions are based off of Bayesian inference done in Bondarescu et al. 2023 (arXiv 2309.06594).
Function Definitions
Function to randomly generate glitch parameters based off of parametrized distributions.
Parameters:
glitch (string) - Name of glitch to generate parameters for
amp_bound (NoneType or tuple) - Optional lower and upper bounds on amplitude distribution
phase_bound (NoneType or tuple) - Optional lower and upper bounds on phase distribution
f0_bound (NoneType or tuple) - Optional lower and upper bounds on central frequency distribution
gbw_bound (NoneType or tuple) - Optional lower and upper bounds on gamma distribution
time_bound (NoneType or tuple) - Optional lower and upper bounds on central time offset distribution
suggest (bool) - Optional argument to use suggested bounds
seed (NoneType or int) - Optional random seed
time_offset (bool) - Argument to enable generation of central time offset, otherwise, set to zero
Returns:
list - List containing floats of glitch parameters