nessai.gw.reparameterisations

Specific reparameterisations for gravitational-wave inference.

Module Contents

Classes

DistanceReparameterisation

Reparameterisation for distance.

Functions

get_gw_reparameterisation(reparameterisation)

Get a reparameterisation from the default list plus specific GW

Attributes

logger

default_gw

nessai.gw.reparameterisations.logger
nessai.gw.reparameterisations.get_gw_reparameterisation(reparameterisation)

Get a reparameterisation from the default list plus specific GW classes.

Parameters
reparameterisationstr, nessai.reparameterisations.Reparameterisation

Name of the reparameterisations to return or a class that inherits from Reparameterisation

Returns
nessai.reparameteristaions.Reparameterisation

Reparameterisation class.

dict

Keyword arguments for the specific reparameterisation.

class nessai.gw.reparameterisations.DistanceReparameterisation(parameters=None, allowed_bounds=['upper'], allow_both=False, converter_kwargs=None, prior=None, prior_bounds=None, **kwargs)

Bases: nessai.reparameterisations.RescaleToBounds

Reparameterisation for distance.

If the prior is specified and is one of the known priors then a rescaling is applied such that the resulting parameter has a uniform prior. If the prior is not specified, then the distance is rescaled an inversion is allowed on only the upper bound.

Parameters
parametersstr

Name of distance parameter to rescale.

prior{‘power-law’, ‘uniform-comoving-volume’}, optional

Prior used for the distance parameter

prior_boundstuple

Tuple of lower and upper bounds on the prior

converter_kwargsdict, optional

Keyword arguments parsed to converter object that converts the distance to a parameter with a uniform prior.

allowed_boundslist, optional

List of the allowed bounds for inversion

kwargs

Additional kwargs are parsed to the parent class.

requires_bounded_prior = True
nessai.gw.reparameterisations.default_gw