{"action":"closed","issue":{"url":"https://api.github.com/repos/grinsted/gwmcmc/issues/2","labels_url":"https://api.github.com/repos/grinsted/gwmcmc/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/grinsted/gwmcmc/issues/2/comments","events_url":"https://api.github.com/repos/grinsted/gwmcmc/issues/2/events","html_url":"https://github.com/grinsted/gwmcmc/issues/2","id":95661949,"number":2,"title":"Random variable constraints","user":{"login":"mrquincle","id":1428585,"avatar_url":"https://avatars.githubusercontent.com/u/1428585?v=3","gravatar_id":"","url":"https://api.github.com/users/mrquincle","html_url":"https://github.com/mrquincle","followers_url":"https://api.github.com/users/mrquincle/followers","following_url":"https://api.github.com/users/mrquincle/following{/other_user}","gists_url":"https://api.github.com/users/mrquincle/gists{/gist_id}","starred_url":"https://api.github.com/users/mrquincle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrquincle/subscriptions","organizations_url":"https://api.github.com/users/mrquincle/orgs","repos_url":"https://api.github.com/users/mrquincle/repos","events_url":"https://api.github.com/users/mrquincle/events{/privacy}","received_events_url":"https://api.github.com/users/mrquincle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-17T14:02:42Z","updated_at":"2015-07-21T08:06:01Z","closed_at":"2015-07-21T08:06:01Z","body":"Is it possible to add constraints to the walkers?\r\n\r\nFor example I'm implementing fitting a line segment at https://github.com/mrquincle/gwmcmc/blob/master/examples/linesegmentfit.m\r\n\r\nCurrently, how I handle the fact that sigma > 0, is by manually adding the following to the logprior function:\r\n```\r\n\tif (sigma < 0)\r\n\t\tresult = -Inf;\r\n\t\treturn;\r\n```\r\n\r\n\r\nThanks!"}}