ripyl.cython.util package¶
Submodules¶
ripyl.cython.util.stats module¶
Cython implementation of util/stats.py
-
class
ripyl.cython.util.stats.
OnlineStats
¶ Bases:
object
Generate statistics from a data set. Computes mean, variance and standard deviation in a single pass through a data set.
-
__init__
¶ x.__init__(…) initializes x; see help(type(x)) for signature
-
accumulate
()¶ Add a new data value to the set of accumulated statistics
Parameters: data (number) – New data to accumulate statistics on
-
accumulate_array
()¶ Add a new data value to the set of accumulated statistics
Parameters: data (sequence of numbers) – New data to accumulate statistics on
-
mean
()¶ Returns: The mean of the values previously accumulated
-
reset
()¶ Reset accumulated statistics to initial conditions
-
std
()¶ Compute the standard deviation of the values previously accumulated
Parameters: ddof (int) – [See variance()] Returns: A float for the standard deviation.
-
variance
()¶ Compute the variance of the data values previously accumulated
Parameters: ddof (int) – Delta Degrees of Freedom. Divisor for variance is N - ddof. Use 0 for a data set which repsresents an entire population. Use 1 for a data set representing a population sample. Returns: A float for the variance
-