lightcurvelynx.astro_utils.agn_utils
Utility functions for AGN models.
Adapted from https://github.com/RickKessler/SNANA/blob/master/src/gensed_AGN.py with the authors’ permission.
Functions
|
Sample from the Eddington Ratio Distribution Function for a given galaxy type. |
Module Contents
- eddington_ratio_dist_fun(edd_ratio, galaxy_type='Blue', rng=None, num_samples=1)[source]
Sample from the Eddington Ratio Distribution Function for a given galaxy type.
Based on notebook from: https://github.com/burke86/imbh_forecast/blob/master/var.ipynb and the paper: https://ui.adsabs.harvard.edu/abs/2019ApJ…883..139S/abstract with parameters selected from: https://iopscience.iop.org/article/10.3847/1538-4357/aa803b/pdf
References
Approach: Sartori et. al. 2019 - https://ui.adsabs.harvard.edu/abs/2019ApJ…883..139S/abstract
Parameters: Weigel et. al. 2017 - https://iopscience.iop.org/article/10.3847/1538-4357/aa803b/pdf
- Parameters:
edd_ratio (float) – The Eddington ratio.
galaxy_type (str, optional) – The type of galaxy, either ‘Red’ or ‘Blue’. Default: ‘Blue’
rng (np.random.Generator, optional) – The random number generator. Default: None
num_samples (int, optional) – The number of samples to draw. If 1 returns a float otherwise returns an array. Default: 1
- Returns:
result – The Eddington ratio distribution.
- Return type:
float or np.array