nessai.reparameterisations.base

Base reparameterisation

Module Contents

Classes

Reparameterisation

Base object for reparameterisations.

class nessai.reparameterisations.base.Reparameterisation(parameters=None, prior_bounds=None)

Base object for reparameterisations.

Parameters:
parametersstr or list

Name of parameters to reparameterise.

prior_boundslist, dict or None

Prior bounds for the parameter(s).

property name

Unique name of the reparameterisations

abstract reparameterise(x, x_prime, log_j)

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

Parameters:
xstructured array

Array of inputs

x_primestructured array

Array to be update

log_jarray_like

Log jacobian to be updated

Returns:
x, x_primestructured arrays

Update version of the x and x_prime arrays

log_jarray_like

Updated log Jacobian determinant

abstract inverse_reparameterise(x, x_prime, log_j)

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

Returns:
x, x_primestructured arrays

Update version of the x and x_prime arrays

log_jarray_like

Updated log Jacobian determinant

update(x)

Update the reparameterisation given some points.

Does nothing by default.