Skip to content

simonrw/emcee_functools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emcee_functools

Convenience function helpers for emcee.

Example usage:

from emcee_functools import func_signature, Fixed, Variable

@func_signature(a=Fixed(), b=Variable())
def lnprob(**params):
    a = params['a']
    b = params['b']

    lnp = lnprob(**params)
    if np.isfinite(lnp):
        return 0.  # Placeholder, should actually return a probability here...

    return -np.inf

About

Convenience function helpers for emcee

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages