specify prior

Use of Healpix, 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
A not equal 2
How can I specify the not equal part?


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

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