@@ -66,31 +66,31 @@ In the first case iteration is over all `values` stored in the range
66
66
iteration is over approximately `n` ordered values, generated as
67
67
follows:
68
68
69
- (i) First, exactly `n` values are generated between `U` and `L`, with a
70
- spacing determined by `r.scale` (uniform if `scale=:linear`) where `U`
71
- and `L` are given by the following table:
72
-
73
- | `r.lower` | `r.upper` | `L` | `U` |
74
- |-------------|------------|---------------------|---------------------|
75
- | finite | finite | `r.lower` | `r.upper` |
76
- | `-Inf` | finite | `r.upper - 2r.unit` | `r.upper` |
77
- | finite | `Inf` | `r.lower` | `r.lower + 2r.unit` |
78
- | `-Inf` | `Inf` | `r.origin - r.unit` | `r.origin + r.unit` |
79
-
80
- (ii) If a callable `f` is provided as `scale`, then a uniform spacing
81
- is always applied in (i ) but `f` is broadcast over the results. (Unlike
82
- ordinary scales, this alters the effective range of values generated,
83
- instead of just altering the spacing.)
84
-
85
- (iii) If `r` is a discrete numeric range (`r isa NumericRange{<:Integer}`)
86
- then the values are additionally rounded, with any duplicate values
87
- removed. Otherwise all the values are used (and there are exacltly `n`
88
- of them).
89
-
90
- (iv) Finally, if a random number generator `rng` is specified, then the values are
91
- returned in random order (sampling without replacement), and otherwise
92
- they are returned in numeric order, or in the order provided to the
93
- range constructor, in the case of a `NominalRange`.
69
+ 1. First, exactly `n` values are generated between `U` and `L`, with a
70
+ spacing determined by `r.scale` (uniform if `scale=:linear`) where `U`
71
+ and `L` are given by the following table:
72
+
73
+ | `r.lower` | `r.upper` | `L` | `U` |
74
+ |-------------|------------|---------------------|---------------------|
75
+ | finite | finite | `r.lower` | `r.upper` |
76
+ | `-Inf` | finite | `r.upper - 2r.unit` | `r.upper` |
77
+ | finite | `Inf` | `r.lower` | `r.lower + 2r.unit` |
78
+ | `-Inf` | `Inf` | `r.origin - r.unit` | `r.origin + r.unit` |
79
+
80
+ 2. If a callable `f` is provided as `scale`, then a uniform spacing
81
+ is always applied in (1 ) but `f` is broadcast over the results. (Unlike
82
+ ordinary scales, this alters the effective range of values generated,
83
+ instead of just altering the spacing.)
84
+
85
+ 3. If `r` is a discrete numeric range (`r isa NumericRange{<:Integer}`)
86
+ then the values are additionally rounded, with any duplicate values
87
+ removed. Otherwise all the values are used (and there are exacltly `n`
88
+ of them).
89
+
90
+ 4. Finally, if a random number generator `rng` is specified, then the values are
91
+ returned in random order (sampling without replacement), and otherwise
92
+ they are returned in numeric order, or in the order provided to the
93
+ range constructor, in the case of a `NominalRange`.
94
94
95
95
"""
96
96
iterator (rng:: AbstractRNG , r:: ParamRange , args... ) =
0 commit comments