@@ -77,7 +77,7 @@ However, for reading convenience, most of the examples show sorted sequences.
77
77
78
78
.. function :: mean(data)
79
79
80
- Return the sample arithmetic mean of *data * which can be a sequence or iterator .
80
+ Return the sample arithmetic mean of *data * which can be a sequence or iterable .
81
81
82
82
The arithmetic mean is the sum of the data divided by the number of data
83
83
points. It is commonly called "the average", although it is only one of many
@@ -122,7 +122,7 @@ However, for reading convenience, most of the examples show sorted sequences.
122
122
Convert *data * to floats and compute the arithmetic mean.
123
123
124
124
This runs faster than the :func: `mean ` function and it always returns a
125
- :class: `float `. The *data * may be a sequence or iterator . If the input
125
+ :class: `float `. The *data * may be a sequence or iterable . If the input
126
126
dataset is empty, raises a :exc: `StatisticsError `.
127
127
128
128
.. doctest ::
@@ -143,7 +143,7 @@ However, for reading convenience, most of the examples show sorted sequences.
143
143
144
144
Raises a :exc: `StatisticsError ` if the input dataset is empty,
145
145
if it contains a zero, or if it contains a negative value.
146
- The *data * may be a sequence or iterator .
146
+ The *data * may be a sequence or iterable .
147
147
148
148
No special efforts are made to achieve exact results.
149
149
(However, this may change in the future.)
@@ -158,7 +158,7 @@ However, for reading convenience, most of the examples show sorted sequences.
158
158
159
159
.. function :: harmonic_mean(data)
160
160
161
- Return the harmonic mean of *data *, a sequence or iterator of
161
+ Return the harmonic mean of *data *, a sequence or iterable of
162
162
real-valued numbers.
163
163
164
164
The harmonic mean, sometimes called the subcontrary mean, is the
@@ -202,7 +202,7 @@ However, for reading convenience, most of the examples show sorted sequences.
202
202
203
203
Return the median (middle value) of numeric data, using the common "mean of
204
204
middle two" method. If *data * is empty, :exc: `StatisticsError ` is raised.
205
- *data * can be a sequence or iterator .
205
+ *data * can be a sequence or iterable .
206
206
207
207
The median is a robust measure of central location and is less affected by
208
208
the presence of outliers. When the number of data points is odd, the
@@ -231,7 +231,7 @@ However, for reading convenience, most of the examples show sorted sequences.
231
231
.. function :: median_low(data)
232
232
233
233
Return the low median of numeric data. If *data * is empty,
234
- :exc: `StatisticsError ` is raised. *data * can be a sequence or iterator .
234
+ :exc: `StatisticsError ` is raised. *data * can be a sequence or iterable .
235
235
236
236
The low median is always a member of the data set. When the number of data
237
237
points is odd, the middle value is returned. When it is even, the smaller of
@@ -251,7 +251,7 @@ However, for reading convenience, most of the examples show sorted sequences.
251
251
.. function :: median_high(data)
252
252
253
253
Return the high median of data. If *data * is empty, :exc: `StatisticsError `
254
- is raised. *data * can be a sequence or iterator .
254
+ is raised. *data * can be a sequence or iterable .
255
255
256
256
The high median is always a member of the data set. When the number of data
257
257
points is odd, the middle value is returned. When it is even, the larger of
@@ -272,7 +272,7 @@ However, for reading convenience, most of the examples show sorted sequences.
272
272
273
273
Return the median of grouped continuous data, calculated as the 50th
274
274
percentile, using interpolation. If *data * is empty, :exc: `StatisticsError `
275
- is raised. *data * can be a sequence or iterator .
275
+ is raised. *data * can be a sequence or iterable .
276
276
277
277
.. doctest ::
278
278
@@ -381,7 +381,7 @@ However, for reading convenience, most of the examples show sorted sequences.
381
381
382
382
.. function :: pvariance(data, mu=None)
383
383
384
- Return the population variance of *data *, a non-empty sequence or iterator
384
+ Return the population variance of *data *, a non-empty sequence or iterable
385
385
of real-valued numbers. Variance, or second moment about the mean, is a
386
386
measure of the variability (spread or dispersion) of data. A large
387
387
variance indicates that the data is spread out; a small variance indicates
0 commit comments