Skip to content

Commit b4bcd7e

Browse files
committed
Improve UniformInit docstring
1 parent 42452b4 commit b4bcd7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/contexts/init.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ init(rng::Random.AbstractRNG, ::VarName, dist::Distribution, ::PriorInit) = rand
3232
UniformInit(lower, upper)
3333
3434
Obtain new values by first transforming the distribution of the random variable
35-
to unconstrained space, and then sampling a value uniformly between `lower` and
36-
`upper`.
35+
to unconstrained space, then sampling a value uniformly between `lower` and
36+
`upper`, and transforming that value back to the original space.
3737
38-
If unspecified, defaults to `(lower, upper) = (-2, 2)`, which mimics Stan's
39-
default initialisation strategy.
38+
If `lower` and `upper` are unspecified, they default to `(-2, 2)`, which mimics
39+
Stan's default initialisation strategy.
4040
4141
Requires that `lower <= upper`.
4242

0 commit comments

Comments
 (0)