:py:mod:`nessai.utils.stats` ============================ .. py:module:: nessai.utils.stats .. autoapi-nested-parse:: Utilities related to statistics. .. !! processed by numpydoc !! Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: nessai.utils.stats.rolling_mean .. py:function:: rolling_mean(x, N=10) Compute the rolling mean with a given window size. Based on this answer from StackOverflow: https://stackoverflow.com/a/47490020 :Parameters: **x** : :obj:`numpy.ndarray` Array of samples **N** : int Size of the window over which the rolling mean is computed. :Returns: :obj:`numpy.ndarray` Array containing the moving average. .. !! processed by numpydoc !!