cogwheel.prior.IdentityTransformMixin

class cogwheel.prior.IdentityTransformMixin

Bases: UnitJacobianMixin

Define standard_params, transform, inverse_transform and ln_jacobian_determinant for priors whose sampled and standard parameters are the same.

It must be inherited before Prior (otherwise a PriorError is raised) so that abstract methods get overriden.

Methods

inverse_transform

Transform sampled parameter values to standard parameter values.

ln_jacobian_determinant

Natural log Jacobian determinant of the inverse transform.

transform

Transform sampled parameter values to standard parameter values.

inverse_transform(*par_vals, **par_dic)

Transform sampled parameter values to standard parameter values.

Take self.sampled_params + self.conditioned_on parameters and return a dictionary with self.standard_params parameters.

ln_jacobian_determinant(*par_vals, **par_dic)

Natural log Jacobian determinant of the inverse transform.

Take .standard_params + .conditioned_on parameters and return a float representing

log|∂{sampled_params} / ∂{standard_params}|

transform(*par_vals, **par_dic)

Transform sampled parameter values to standard parameter values.

Take self.sampled_params + self.conditioned_on parameters and return a dictionary with self.standard_params parameters.