GWForge.population_fisher.model¶
The population models GWForge forecasts on, with their analytic scores.
Attributes¶
Classes¶
BGP primary mass and power-law mass ratio, with analytic scores. |
|
GWTC-5.0 Default BBH spins: truncated-Gaussian magnitudes, mixture tilts. |
|
Merger-rate density following the Madau-Dickinson shape. |
|
Source-frame population observed in the detector frame, cosmology free. |
Functions¶
|
The shared normalisation grid: quadratically clustered towards |
|
Normalisation of |
|
|
|
|
|
|
|
|
Module Contents¶
- GWForge.population_fisher.model.mass_grid(mmin, maximum_mass, nodes=MASS_GRID_NODES)[source]¶
The shared normalisation grid: quadratically clustered towards
mmin.- Parameters:
mmin (float)
maximum_mass (float)
nodes (int)
- Return type:
numpy.ndarray
- GWForge.population_fisher.model.broken_power_law_norm(alpha_1, alpha_2, m_break, mmin, m_high)[source]¶
Normalisation of
GWForge.population._smoothed_mass.broken_power_law().- Return type:
float
- GWForge.population_fisher.model.broken_power_law_norm_derivatives(alpha_1, alpha_2, m_break, mmin, m_high)[source]¶
dN/dLambdafor the broken power law, as a dict.- Returns:
Keys
"alpha_1","alpha_2","m_break".- Return type:
dict
- GWForge.population_fisher.model.left_truncated_normal_dlog(mass, mu, sigma, mmin)[source]¶
d ln N_lt / d(mu, sigma)for the left-truncated normal.- Returns:
Keys
"mu","sigma", each an array shaped likemass.- Return type:
dict
- GWForge.population_fisher.model.smoothing_ddelta_m(mass, mmin, mmax, delta_m)[source]¶
dS/d(delta_m)for the Planck taper.- Return type:
numpy.ndarray
- GWForge.population_fisher.model.smoothing_dmass(mass, mmin, mmax, delta_m)[source]¶
dS/dmfor the Planck taper, at fixed hyper-parameters.- Return type:
numpy.ndarray
- class GWForge.population_fisher.model.BrokenPowerLawTwoPeakMass(mmin=BGP_PARAMETERS['mmin'], m_high=BGP_PARAMETERS['m_high'], maximum_mass=BGP_PARAMETERS['maximum_mass'], mmin_2=BGP_PARAMETERS['mmin_2'], delta_m_2=BGP_PARAMETERS['delta_m_2'], fiducial=None, nodes=MASS_GRID_NODES)[source]¶
Bases:
GWForge.population_fisher.base.PopulationModelBGP primary mass and power-law mass ratio, with analytic scores.
- Variables:
parameter_names (list of str) – The eleven free hyper-parameters, using
GWForge.population.mass.Mass’s spelling so that a generation config and a Fisher config read the same.maximum_mass (mmin, m_high,) – Support parameters, fixed by construction: hard cutoffs have a constant score, so their centred score vanishes and they are not measurable within Term I.
- parameter_names = ['alpha_1', 'alpha_2', 'm_break', 'lam_0', 'lam_1', 'mpp_1', 'sigpp_1', 'mpp_2', 'sigpp_2',...[source]¶
- dlog_prob_dmasses(events, parameters)[source]¶
(d ln p / d m_1, d ln p / d m_2)at fixed hyper-parameters.- Returns:
(d ln p / d m_1, d ln p / d m_2),nanoutside the support.- Return type:
tuple of numpy.ndarray
- log_prob(events, parameters)[source]¶
See
GWForge.population_fisher.base.PopulationModel.log_prob().
- class GWForge.population_fisher.model.DefaultSpin(fiducial=None, maximum_spin=DEFAULT_MAXIMUM_SPIN, minimum_cosine_tilt=DEFAULT_MINIMUM_COSINE_TILT)[source]¶
Bases:
GWForge.population_fisher.base.PopulationModelGWTC-5.0 Default BBH spins: truncated-Gaussian magnitudes, mixture tilts.
- Variables:
parameter_names (list of str) –
["mu_chi", "sigma_chi", "mu_t", "sigma_t", "xi_spin"]– the namesGWForge.population.spin.Spintakes inspin-parameters. The posterior files callmu_t/sigma_tmu_spin/sigma_spin.
- log_prob(events, parameters)[source]¶
See
GWForge.population_fisher.base.PopulationModel.log_prob().
- class GWForge.population_fisher.model.MadauDickinsonRedshift(maximum_redshift=10.0, cosmology=None, fiducial=None, nodes=NORMALISATION_NODES)[source]¶
Bases:
GWForge.population_fisher.base.PopulationModelMerger-rate density following the Madau-Dickinson shape.
- Variables:
parameter_names (list of str) –
["gamma", "kappa", "z_peak"]– the namesGWForge.population.redshift.Redshiftuses, so a generation config and a Fisher config read the same.
- log_shape(redshift, parameters)[source]¶
ln psi(z): the Madau-Dickinson shape alone, without the measure.
- log_prob(events, parameters)[source]¶
See
GWForge.population_fisher.base.PopulationModel.log_prob().
- GWForge.population_fisher.model.OBSERVABLE_KEYS = ('mass_1', 'mass_2', 'luminosity_distance')[source]¶
- class GWForge.population_fisher.model.SpectralSirenModel(mass_model, redshift_model, spin_model=None, cosmology=None, cosmology_parameters=COSMOLOGY_PARAMETERS, nodes=None)[source]¶
Bases:
GWForge.population_fisher.base.PopulationModelSource-frame population observed in the detector frame, cosmology free.
- Variables:
parameter_names (list of str) – Mass, then redshift, then spin, then the cosmology parameters.
maximum_redshift (float) – Upper edge of the redshift support, taken from the redshift model.
- log_prob(events, parameters)[source]¶
See
GWForge.population_fisher.base.PopulationModel.log_prob().