Skip to content

Commit 360c8b0

Browse files
authored
Minor example typo
1 parent a6fb962 commit 360c8b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/ref/gfi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,12 @@ Also, `discard` will be:
267267
268268
└── :c : false
269269
```
270-
If `:d` is assigned to 0.1, then the weight (`w`) is computed as:
270+
If the former case occurs and `:d` is assigned to `true`, then the weight (`w`) is computed as:
271271
```math
272272
p(t'; x) = 0.7 × 0.4 × 0.4 × 0.7 = 0.0784\\
273273
p(t; x') = 0.7 × 0.6 × 0.1 × 0.7 = 0.0294\\
274274
q(t'; x', t + u) = 0.1\\
275-
u = \log p(t'; x')/(p(t; x) q(t'; x', t + u)) = \log 0.0294/(0.0784 \cdot 0.1) = \log (3.75)
275+
w = \log p(t'; x')/(p(t; x) q(t'; x', t + u)) = \log 0.0294/(0.0784 \cdot 0.1) = \log (3.75)
276276
```
277277

278278

0 commit comments

Comments
 (0)