sage.data.waveform.distributions.legacy
Classes
Geometrically bounded prior generator in the (tau0, tau3) chirp-time space. |
Functions
|
Return the mass ratio q = m1/m2 (≥ 1 when m1 ≥ m2). |
|
Convert Newtonian chirp duration to chirp mass. |
|
Convert chirp mass to Newtonian in-band signal duration. |
|
Return the primary mass given chirp mass mchirp and mass ratio q = m1/m2. |
|
Return the secondary mass given chirp mass mchirp and mass ratio q = m1/m2. |
|
Return |
|
Return |
|
Return Newtonian chirp-time bounds |
|
Draw |
Module Contents
- chirp_mass_from_signal_duration(tau, signal_low_freq_cutoff)[source]
Convert Newtonian chirp duration to chirp mass.
- signal_duration_from_chirp_mass(mchirp, signal_low_freq_cutoff)[source]
Convert chirp mass to Newtonian in-band signal duration.
- mass1_from_mchirp_q(mchirp, q)[source]
Return the primary mass given chirp mass mchirp and mass ratio q = m1/m2.
- mass2_from_mchirp_q(mchirp, q)[source]
Return the secondary mass given chirp mass mchirp and mass ratio q = m1/m2.
- mass1_mass2_from_mchirp_q(mchirp, q)[source]
Return
(mass1, mass2)from chirp mass and mass ratio q = m1/m2.
- get_mchirp_priors(ml, mu)[source]
Return
(min_mchirp, max_mchirp)for equal-mass binaries at the given component-mass limits ml (lower) and mu (upper).
- get_tau_priors(ml, mu, lf)[source]
Return Newtonian chirp-time bounds
(tau_lower, tau_upper)for the given mass range[ml, mu]and frequency cutoff lf.
- get_uniform_masses_with_mass1_gt_mass2(mass_lower, mass_upper, num_samples)[source]
Draw
num_samplespairs of component masses uniformly in[mass_lower, mass_upper]with the mass ordering constraint m1 ≥ m2.- Returns:
mass1, mass2 – Arrays of shape
(num_samples,)satisfyingmass1 >= mass2.- Return type:
np.ndarray
- class BoundedPriors(mu, ml, lf)[source]
Geometrically bounded prior generator in the (tau0, tau3) chirp-time space.
Provides boundary helpers and mass-draw methods for the PyCBC template-placement metric used by the legacy dataset generation pipeline.
- Parameters: