bilby.gw.prior

Functions

convert_to_flat_in_component_mass_prior(result)

Converts samples with a defined prior in chirp-mass and mass-ratio to flat in component mass by resampling with the posterior with weights defined as ratio in new:old prior values times the jacobian which for F(mc, q) -> G(m1, m2) is defined as J := m1^2 / mc

secondary_mass_condition_function(...)

Condition function to use for a prior that is conditional on the value of the primary mass, for example, a prior on the secondary mass that is bounded by the primary mass.

Classes

AlignedSpin([a_prior, z_prior, name, ...])

Prior distribution for the aligned (z) component of the spin.

BBHPriorDict([dictionary, filename, ...])

BNSPriorDict([dictionary, filename, ...])

CBCPriorDict([dictionary, filename, ...])

CalibrationPriorDict([dictionary, filename])

Prior dictionary class for calibration parameters.

ConditionalChiInPlane(minimum, maximum, name)

This prior characterizes the conditional prior on the in-plane spin magnitude given the aligned component of the spin such that the marginal prior is uniform if the distribution of spin orientations is isotropic.

ConditionalChiUniformSpinMagnitude(minimum, ...)

This prior characterizes the conditional prior on the spin magnitude given the aligned component of the spin such that the marginal prior is uniform if the distribution of spin orientations is isotropic.

Cosmological(minimum, maximum[, cosmology, ...])

Base prior class for cosmologically aware distance parameters.

EOSCheck([minimum, maximum])

HealPixMapPriorDist(hp_file[, names, ...])

Class defining prior according to given HealPix Map, defaults to 2D in ra and dec but can be set to include Distance as well.

HealPixPrior(dist[, name, latex_label, unit])

A prior distribution that follows a user-provided HealPix map for one parameter.

UniformComovingVolume(minimum, maximum[, ...])

Prior that is uniform in the comoving volume.

UniformInComponentsChirpMass(minimum, maximum)

Prior distribution for chirp mass which is uniform in component masses.

UniformInComponentsMassRatio(minimum, maximum)

Prior distribution for chirp mass which is uniform in component masses.

UniformSourceFrame(minimum, maximum[, ...])

Prior for redshift which is uniform in comoving volume and source frame time.

WrappedInterp1d(x, y[, kind, axis, copy, ...])

A wrapper around scipy interp1d which sets equality-by-instantiation

Exceptions

BilbyPriorConversionError