template_bank_generator_HM.gen_random_pars#
Back to Module page
Summary#
Generates n_wf random parameters. Applies either mrng (preferably) or mtrng, along with qrng
Signature#
def gen_random_pars(n_wf, mtrng, qrng, mrng, srng, lrng, flat_in_chieff = False, mcrng = None)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Number of random parameter choices |
||
|
Array of length 2 with range of total masses (in M_sun) |
||
|
Array of length 2 with range of mass ratios (q<1) |
||
|
Array/tuple of length 2 with range of component mass (in M_sun) |
||
|
Array of length 2 with range of spins |
||
|
Array of length 2 with range of tidal deformabilities |
||
|
False |
Bool, if to take s1z,s2z uniform from srng (False) or take chi_eff = m1\*s1z+m2\*s2z/(m1+m2) uniform in snrg, and take chia = s1z-s2z uniform in the allowed range given chieff (True) |
|
|
None |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Docstring#
Generates n_wf random parameters. Applies either mrng (preferably) or
mtrng, along with qrng
:param n_wf: Number of random parameter choices
:param mtrng: Array of length 2 with range of total masses (in M_sun)
:param qrng: Array of length 2 with range of mass ratios (q<1)
:param mrng: Array/tuple of length 2 with range of component mass (in M_sun)
:param srng: Array of length 2 with range of spins
:param lrng: Array of length 2 with range of tidal deformabilities
:param flat_in_chieff : Bool, if to take s1z,s2z uniform from srng (False) or take
chi_eff = m1*s1z+m2*s2z/(m1+m2) uniform in snrg,
and take chia = s1z-s2z uniform in the allowed range
given chieff (True)