nessai.reparameterisations.combined#
Combined reparameterisation.
Classes#
Class to handle multiple reparameterisations |
Module Contents#
- class nessai.reparameterisations.combined.CombinedReparameterisation(reparameterisations=None, reverse_order=False)#
Bases:
dictClass 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 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.
- reset()#
Reset the reparameterisations
- log_prior(x)#
Compute any additional priors for auxiliary parameters