Skip to content

Commit 73100a0

Browse files
authored
Fix doctests (#966)
1 parent 92d1674 commit 73100a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/weights.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ As this value approaches 0, the resulting weights will be almost equal,
8282
while values closer to 1 will put greater weight on the tail elements of the vector.
8383

8484
For example, the following call generates exponential weights for ten observations with ``λ = 0.3``.
85-
```jldoctest
85+
```jldoctest; filter = r"(\d*)\.(\d{14})\d+" => s"\1.\2***"
8686
julia> eweights(1:10, 0.3)
8787
10-element Weights{Float64, Float64, Vector{Float64}}:
8888
0.3
@@ -91,15 +91,15 @@ julia> eweights(1:10, 0.3)
9191
0.8746355685131197
9292
1.249479383590171
9393
1.7849705479859588
94-
2.549957925694227
94+
2.5499579256942266
9595
3.642797036706039
9696
5.203995766722913
9797
7.434279666747019
9898
```
9999

100100
Simply passing the number of observations `n` is equivalent to passing in `1:n`.
101101

102-
```jldoctest
102+
```jldoctest; filter = r"(\d*)\.(\d{14})\d+" => s"\1.\2***"
103103
julia> eweights(10, 0.3)
104104
10-element Weights{Float64, Float64, Vector{Float64}}:
105105
0.3
@@ -108,7 +108,7 @@ julia> eweights(10, 0.3)
108108
0.8746355685131197
109109
1.249479383590171
110110
1.7849705479859588
111-
2.549957925694227
111+
2.5499579256942266
112112
3.642797036706039
113113
5.203995766722913
114114
7.434279666747019

0 commit comments

Comments
 (0)