LALInference  4.1.6.1-b72065a
bayestar_cosmology Namespace Reference

Functions

def dVC_dVL_for_z (z)
 Ratio between the comoving volume element dVC and a DL**2 prior at redshift z. More...
 
def z_for_DL (DL)
 
def dVC_dVL_for_DL (DL)
 
def func (x)
 
def exact_dVC_dVL (DL)
 An alternate expression of dVC_dVL_for_DL. More...
 

Variables

 parser = argparse.ArgumentParser()
 
 choices
 
 default
 
 nargs
 
 help
 
 args = parser.parse_args()
 
 cosmo
 
 DL = np.logspace(0, 6, 32)
 
 log_DL = np.log(DL)
 
def dVC_dVL = dVC_dVL_for_DL(DL)
 
 log_dVC_dVL = np.log(dVC_dVL)
 
 high_z_x0 = np.log(1e6)
 
def high_z_y0 = func(high_z_x0)
 
 high_z_slope = scipy.misc.derivative(func, high_z_x0)
 
def high_z_intercept = high_z_y0 - high_z_slope * high_z_x0
 
 filename = os.path.basename(__file__)
 
 sep
 

Function Documentation

◆ dVC_dVL_for_z()

def bayestar_cosmology.dVC_dVL_for_z (   z)

Ratio between the comoving volume element dVC and a DL**2 prior at redshift z.

Definition at line 41 of file bayestar_cosmology.py.

◆ z_for_DL()

def bayestar_cosmology.z_for_DL (   DL)

Definition at line 60 of file bayestar_cosmology.py.

◆ dVC_dVL_for_DL()

def bayestar_cosmology.dVC_dVL_for_DL (   DL)

Definition at line 65 of file bayestar_cosmology.py.

◆ func()

def bayestar_cosmology.func (   x)

Definition at line 75 of file bayestar_cosmology.py.

◆ exact_dVC_dVL()

def bayestar_cosmology.exact_dVC_dVL (   DL)

An alternate expression of dVC_dVL_for_DL.

Definition at line 100 of file bayestar_cosmology.py.

Variable Documentation

◆ parser

bayestar_cosmology.parser = argparse.ArgumentParser()

Definition at line 29 of file bayestar_cosmology.py.

◆ choices

bayestar_cosmology.choices

Definition at line 31 of file bayestar_cosmology.py.

◆ default

bayestar_cosmology.default

Definition at line 32 of file bayestar_cosmology.py.

◆ nargs

bayestar_cosmology.nargs

Definition at line 32 of file bayestar_cosmology.py.

◆ help

bayestar_cosmology.help

Definition at line 32 of file bayestar_cosmology.py.

◆ args

bayestar_cosmology.args = parser.parse_args()

Definition at line 33 of file bayestar_cosmology.py.

◆ cosmo

bayestar_cosmology.cosmo
Initial value:
1 = astropy.cosmology.default_cosmology.get_cosmology_from_string(
2  args.cosmology)

Definition at line 35 of file bayestar_cosmology.py.

◆ DL

bayestar_cosmology.DL = np.logspace(0, 6, 32)

Definition at line 69 of file bayestar_cosmology.py.

◆ log_DL

bayestar_cosmology.log_DL = np.log(DL)

Definition at line 70 of file bayestar_cosmology.py.

◆ dVC_dVL

def bayestar_cosmology.dVC_dVL = dVC_dVL_for_DL(DL)

Definition at line 71 of file bayestar_cosmology.py.

◆ log_dVC_dVL

bayestar_cosmology.log_dVC_dVL = np.log(dVC_dVL)

Definition at line 72 of file bayestar_cosmology.py.

◆ high_z_x0

bayestar_cosmology.high_z_x0 = np.log(1e6)

Definition at line 79 of file bayestar_cosmology.py.

◆ high_z_y0

def bayestar_cosmology.high_z_y0 = func(high_z_x0)

Definition at line 80 of file bayestar_cosmology.py.

◆ high_z_slope

bayestar_cosmology.high_z_slope = scipy.misc.derivative(func, high_z_x0)

Definition at line 81 of file bayestar_cosmology.py.

◆ high_z_intercept

def bayestar_cosmology.high_z_intercept = high_z_y0 - high_z_slope * high_z_x0

Definition at line 82 of file bayestar_cosmology.py.

◆ filename

bayestar_cosmology.filename = os.path.basename(__file__)

Definition at line 84 of file bayestar_cosmology.py.

◆ sep

bayestar_cosmology.sep

Definition at line 87 of file bayestar_cosmology.py.