CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

specify prior
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Nishanth Sasankan



Joined: 07 Sep 2016
Posts: 15
Affiliation: university of notre dame

PostPosted: November 28 2017  Reply with quote

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
View user's profile  
Antony Lewis



Joined: 23 Sep 2004
Posts: 1303
Affiliation: University of Sussex

PostPosted: November 28 2017  Reply with quote

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
View user's profile [ Hidden ] Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.