eggplantbren / DNest4

Diffusive Nested Sampling
MIT License
62 stars 22 forks source link

New Fixed "distribution" #30

Open j-faria opened 6 years ago

j-faria commented 6 years ago

This might be useful as an easy way to fix a parameter. What do you think?

eggplantbren commented 6 years ago

This seems relatively pointless to me, but I might accept it. What's the use case? Isn't it easy to just set the value in from_prior and never perturb it if you want something to be held constant?

j-faria commented 5 years ago

Hi Brendon, sorry, this got forgotten... A very typical use case in kima is to fix the eccentricity of the planets to zero. Or the period to a given value... I agree it's not hard to do the two things you suggest (though it implies changing the source code). But this would still be easier: in one line you can set a "Fixed" prior for a given parameter.