Skip to content

Commit 6f81971

Browse files
a suggestion for improvement in the docs, imho (#692)
1 parent 2080127 commit 6f81971

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/weights.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ weighted mean along dimension `dims`.
611611
612612
# Examples
613613
```julia
614+
n = 20
615+
x = rand(n)
614616
w = rand(n)
615617
mean(x, weights(w))
616618
```

0 commit comments

Comments
 (0)