Skip to content

Commit 16166bd

Browse files
authored
Improve docs
1 parent 5f288a8 commit 16166bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/src/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ julia> r
7171
75
7272
```
7373

74-
This has the advantage to require `O(1)` memory, while reservoir sample techniques requires `O(k)` memory where `k`
75-
is the number of elements in the sample.
74+
The advantage of `StreamSample` iterators in respect to `ReservoirSample` is that they require `O(1)`
75+
memory if not collected, while reservoir techniques require `O(k)` memory where `k` is the number
76+
of elements in the sample.
7677

77-
Consult the [API page](https://juliadynamics.github.io/StreamSampling.jl/stable/api) for more information about the
78-
package interface.
78+
Consult the [API page](https://juliadynamics.github.io/StreamSampling.jl/stable/api) for more information
79+
about the package interface.

0 commit comments

Comments
 (0)