To draw restricted to a positive value, let and return for uniform . For restriction to a negative value use . These are inverse transform sampling constructions. Repeatedly drawing an untruncated normal until its sign agrees is also exact, but inefficient for rare signs.
Articles by others on the same topic
There are currently no matching articles.