pygwb.spectral.running_mean
- pygwb.spectral.running_mean(data, coarsening_factor=1, axis=-1)[source]
 Compute the running mean of an array, this uses the default axis of numpy cumsum.
- Parameters:
 data (
array-like) – Array of size M to be averaged.coarsening_factor (
int, optional) – Number of segments to average, default=1.axis (
int, optional) – Axis to apply the mean over, default=-1.
- Returns:
 - running_mean_array: 
array-like The averaged array of size M - coarsening factor.
- running_mean_array: 
 
See also
numpy.cumsumMore information here.