Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
The negation of this is what gets added when T[L,U] is added to probability function foo.
Then we'd use those for censoring and truncation instead of the expression the right, which we're using now. It should be done with a log-sum-exp type operation. Even a utility implementation that just used Stan's existing log_diff_exp function would be useful.
It'd be useful for both efficiency and ease of notation if we had a function defined by:
The negation of this is what gets added when
T[L,U]
is added to probability functionfoo
.Then we'd use those for censoring and truncation instead of the expression the right, which we're using now. It should be done with a log-sum-exp type operation. Even a utility implementation that just used Stan's existing
log_diff_exp
function would be useful.