cogwheel.prior.UniformPriorMixin

class cogwheel.prior.UniformPriorMixin

Bases: object

Define .lnprior for uniform priors.

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

Methods

lnprior

Natural logarithm of the prior probability density.

lnprior(*par_vals, **par_dic)

Natural logarithm of the prior probability density.

Parameters:
*par_vals, **par_dic

.sampled_params + .conditioned_on parameters

Returns:
float

Natural logarithm of the prior probability density in the space of sampled parameters.