bucky.util.rolling_mean
¶
Provides generic rolling Pythagorean means over cupy/numpy ndarrays.
Module Contents¶
Functions¶
|
Compute a rolling arithmetic mean. |
|
Compute a rolling geometric mean. |
|
Compute a rolling harmonic mean. |
|
Calculate a rolling mean over a numpy/cupy ndarray. |
|
Use stride_tricks to add an extra dim on the end of an ndarray for each elements window. |
- bucky.util.rolling_mean._rolling_arithmetic_mean(arr, window_size=7, axis=0, weights=None)[source]¶
Compute a rolling arithmetic mean.
- bucky.util.rolling_mean._rolling_geometric_mean(arr, window_size, axis=0, weights=None)[source]¶
Compute a rolling geometric mean.
- bucky.util.rolling_mean._rolling_harmonic_mean(arr, window_size, axis=0, weights=None)[source]¶
Compute a rolling harmonic mean.