File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -183,15 +183,8 @@ pub trait IndexedRandom: Index<usize> {
183
183
/// likelihood `weight(x)`. The probability of each item being selected is
184
184
/// therefore `weight(x) / s`, where `s` is the sum of all `weight(x)`.
185
185
///
186
- /// This implementation uses `O(length + amount)` space and `O(length)` time
187
- /// if the "nightly" feature is enabled, or `O(length)` space and
188
- /// `O(length + amount * log length)` time otherwise.
189
- ///
190
- /// # Known issues
191
- ///
192
- /// The algorithm currently used to implement this method loses accuracy
193
- /// when small values are used for weights.
194
- /// See [#1476](https://github.com/rust-random/rand/issues/1476).
186
+ /// This implementation uses `O(length + amount)` space and `O(length)` time.
187
+ /// See [`index::sample_weighted`] for details.
195
188
///
196
189
/// # Example
197
190
///
You can’t perform that action at this time.
0 commit comments