Skip to content

Commit 4764381

Browse files
authored
Merge pull request #172 from GBarnsley/master
Remove check on negative posterior, does not apply posterior is prob density
2 parents 1c7b590 + 3c94b0a commit 4764381

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

R/pmcmc_utils.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ sample_pmcmc <- function(pmcmc_results,
5555
res <- pmcmc_results$results
5656
}
5757

58-
# Log Posterior must be negative and nonzero -- the later because the posterior should never be P(1)
59-
assert_neg(res$log_posterior, zero_allowed = FALSE)
60-
6158
# convert to probability by exponentiating it
6259
res <- unique(res)
6360
probs <- exp(res$log_posterior)

0 commit comments

Comments
 (0)