Parameter

class mosfit.modules.Parameter(**kwargs)[source]

Bases: Module

Model parameter that can either be free or fixed.

Methods Summary

fix_value(value)

Fix value of parameter.

fraction(value[, clip])

Return fraction given a parameter's value.

get_derived_keys()

Return list of keys that should be generated by this parameter.

is_log()

Return if Parameter's value is stored as log10(value).

latex()

Return the LaTeX representation of the parameter.

lnprior_pdf(x)

Evaluate natural log of probability density function.

prior_icdf(u)

Evaluate inverse cumulative density function.

process(**kwargs)

Process module.

receive_requests(**requests)

Receive requests from other Module objects.

value(f)

Return the value of the parameter in parameter's units.

Methods Documentation

fix_value(value)[source]

Fix value of parameter.

fraction(value, clip=True)[source]

Return fraction given a parameter’s value.

get_derived_keys()[source]

Return list of keys that should be generated by this parameter.

is_log()[source]

Return if Parameter’s value is stored as log10(value).

latex()[source]

Return the LaTeX representation of the parameter.

lnprior_pdf(x)[source]

Evaluate natural log of probability density function.

prior_icdf(u)[source]

Evaluate inverse cumulative density function.

process(**kwargs)[source]

Process module.

Initialize a parameter based upon either a fixed value or a distribution, if one is defined.

receive_requests(**requests)[source]

Receive requests from other Module objects.

value(f)[source]

Return the value of the parameter in parameter’s units.