View previous topic :: View next topic |
Author |
Message |
Nishanth Sasankan
Joined: 07 Sep 2016 Posts: 26 Affiliation: university of notre dame
|
Posted: 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 |
|
Back to top |
|
 |
Antony Lewis
Joined: 23 Sep 2004 Posts: 1332 Affiliation: University of Sussex
|
Posted: 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). |
|
Back to top |
|
 |
|