utils
inner_product(h1, h2, frequency, PSD)
¤
Do PSD interpolation outside the inner product loop to speed up the evaluation
Source code in jimgw/utils.py
4 5 6 7 8 9 10 11 12 |
|
m1m2_to_Mq(m1, m2)
¤
Transforming the primary mass m1 and secondary mass m2 to the Total mass M and mass ratio q.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
m1 |
float
|
Primary mass of the binary. |
required |
m2 |
float
|
Secondary mass of the binary. |
required |
Returns:
Type | Description |
---|---|
A tuple containing both the total mass M and mass ratio q. |
Source code in jimgw/utils.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|