Skip to content

truncated PRNGs #214

Open
Open
@bob-carpenter

Description

@bob-carpenter

It'd be nice to be able to match our models and do something like this:

sigma_sim <- normal_rng(mu, sigma) T[lb, ];

to get a truncated form of the normal (and so on for upper and lower bounds and just upper bounds).

What we need in this repo is truncated forms of the PRNGs. Rejection sampling won't be robust enough and writing a slice sampler seems like a huge pain and I'm not even clear it'll work for fat tails like the Cauchy or constrained distributions without transformed. Will this have to wait until we have inverse CDFs?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions