bfarr / kombine

A kernel-density-based, embarrassingly parallel ensemble sampler
http://pages.uoregon.edu/bfarr/kombine
MIT License
34 stars 25 forks source link

Add support for function args #9

Closed adrn closed 9 years ago

adrn commented 9 years ago

Oh heyyy, it's me again.

I added some trivial code to support using a log pdf function with arguments instead of a class w/ __call__. This just mimics the behavior in emcee.

bfarr commented 9 years ago

I had originally left this out because I thought classes that store such arguments internally were cleaner than arguments fed manually to the sampler.

I guess this should be there to make switching back and forth between emcee and kombine as painless as possible. Thanks for adding it!