We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf4b7e4 commit fe5a6e1Copy full SHA for fe5a6e1
rand_distr/src/zipf.rs
@@ -31,6 +31,14 @@ use core::fmt;
31
/// println!("{}", val);
32
/// ```
33
///
34
+/// # Remarks
35
+///
36
+/// The zeta distribution has no upper limit. Sampled values may be infinite.
37
+/// In particular, a value of infinity might be returned for the following
38
+/// reasons:
39
+/// 1. it is the best representation in the type `F` of the actual sample.
40
+/// 2. to prevent infinite loops for very small `a`.
41
42
/// # Implementation details
43
44
/// We are using the algorithm from [Non-Uniform Random Variate Generation],
0 commit comments