Skip to content

Truncated/folded distributions #535

Answered by ztangent
sdwfrost asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't support for this with the @dist DSL unfortunately! But you might be able to use the wrapper functionality provided by https://github.com/probcomp/GenDistributions.jl to wrap a truncated distribution from Distributions.jl.

You can also implement your own distribution in Gen, though note that Gen's API for distributions is not the same as the one for Distributions.jl!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sdwfrost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants