Skip to content

Commit 4b7fb42

Browse files
authored
Merge pull request #777 from stan-dev/distribution-stataments
sampling statement -> distribution statament
2 parents ffecad9 + f6f78a9 commit 4b7fb42

19 files changed

+209
-126
lines changed

gen_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def make_index_mapping(sigs):
2828
sig = f"<!-- {returntype}; {name}"
2929
if args.strip() == "~":
3030
sig += " ~; "
31-
index_entry = "sampling statement"
31+
index_entry = "distribution statement"
3232
else:
3333
sig += f"; {args}; "
3434
index_entry = f"`{args} : {returntype}`"

src/reference-manual/blocks.qmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Log-probability modifying functions to blocks where the log
9393
probability accumulator is in scope (transformed parameters and
9494
model); such functions are suffixed with `_lp`.
9595

96-
Density functions defined in the program may be used in sampling
96+
Density functions defined in the program may be used in distribution
9797
statements.
9898

9999

@@ -393,8 +393,9 @@ in the `transformed data` block.
393393

394394
The statements in the transformed data block are designed to be
395395
executed once and have a deterministic result. Therefore, log
396-
probability is not accumulated and sampling statements may not be
397-
used.
396+
probability is not accumulated and
397+
[distribution statements](statements.qmd#distribution-statements.section)
398+
may not be used.
398399

399400

400401
### Variable constraint checking {-}
@@ -528,7 +529,7 @@ no well-defined way to have them be both flexible and easy to
528529
validate.
529530

530531
The statements in the model block typically define the model. This is
531-
the block in which probability (sampling notation) statements are
532+
the block in which probability (distribution notation) statements are
532533
allowed. These are typically used when programming in the BUGS idiom
533534
to define the probability model.
534535

src/reference-manual/expressions.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,9 @@ model {
13391339
}
13401340
```
13411341

1342-
Algebraically, the sampling statement in the model could be reduced to
1342+
Algebraically,
1343+
[statements.qmd#distribution-statements.section](the distribution statement)
1344+
in the model could be reduced to
13431345

13441346
```stan
13451347
x ~ normal(0, 1);

src/reference-manual/removals.qmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ Replace `foo_ccdf_log(y, ...)` with `foo_lccdf(y | ...)`.
123123

124124
## User-defined function with `_log` suffix
125125

126-
*Removed*: A user-defined function ending in `_log` can be no longer be used in
127-
sampling statements.
126+
*Removed*: A user-defined function ending in `_log` can be no longer be
127+
used in
128+
[statements.qmd#distribution-statements.section](distribution statements).
128129

129130
*Replacement*: Replace the `_log` suffix with `_lpdf` for density
130131
functions or `_lpmf` for mass functions in the user-defined function.

0 commit comments

Comments
 (0)