specify prior

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Nishanth Sasankan
Posts: 27
Joined: September 07 2016
Affiliation: university of notre dame

specify prior

Post by Nishanth Sasankan » November 28 2017

I am trying to choose a prior with the following property , say variable A has uniform prior over center = 3
min =1
max= 5
and
A not equal 2
How can I specify the not equal part?


Thanks
Nishanth

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: specify prior

Post by Antony Lewis » November 28 2017

You'd have to modify the code, though for a continuous variable the probability of hitting exactly 2 is zero anyway, so this probably isn't what you want (you can't sample integers directly).

Post Reply