nessai.reparameterisations.combined

Combined reparameterisation.

Module Contents

Classes

CombinedReparameterisation

Class to handle multiple reparameterisations

class nessai.reparameterisations.combined.CombinedReparameterisation(reparameterisations=None, reverse_order=False)

Bases: dict

Class to handle multiple reparameterisations

Parameters:
reparameterisationslist, optional

List of reparameterisations to add to the combined reparameterisations. Further reparameterisations can be added using add_reparameterisations.

reverse_orderbool

If True the order of the reparameterisations will be reversed compared to the default ordering.

property has_prime_prior

Boolean to check if prime prior can be enabled

property requires_prime_prior

Boolean to check if any of the priors require the prime space

property to_prime_order

Order when converting to the prime space

property from_prime_order

Order when converting from the prime space

add_reparameterisation(reparameterisation)

Add a reparameterisation

add_reparameterisations(reparameterisations)

Add multiple reparameterisations

Parameters:
reparameterisationslist of :obj:Reparameterisation

List of reparameterisations to add.

check_order()

Check the order of the reparameterisations is valid.

Raises:
RuntimeError

Raised if the order is invalid.

reparameterise(x, x_prime, log_j, **kwargs)

Apply the reparameterisation to convert from x-space to x’-space

Parameters:
xstructured array

Array

x_primestructured array

Array to be update

log_jarray_like

Log jacobian to be updated

inverse_reparameterise(x, x_prime, log_j, **kwargs)

Apply the reparameterisation to convert from x-space to x’-space

Parameters:
xstructured array

Array

x_primestructured array

Array to be update

log_jarray_like

Log jacobian to be updated

update_bounds(x)

Update the bounds used for the reparameterisation

reset_inversion()

Reset edges for boundary inversion

update(x)

Update the reparameterisations given a set of points.

log_prior(x)

Compute any additional priors for auxiliary parameters

x_prime_log_prior(x_prime)

Compute the prior in the prime space