From 428b970fb28e11ebc17a1d1780a107307ab00daa Mon Sep 17 00:00:00 2001 From: Keisuke Fujii Date: Fri, 25 May 2018 17:03:08 +0900 Subject: [PATCH] weighted rolling mean -> weighted rolling sum An example of weighted rolling mean in doc is actually weighted rolling *sum*. It is a little bit misleading (SO)[https://stackoverflow.com/questions/50520835/xarray-simple-weighted-rolling-mean-example-using-construct/50524093#50524093], so I propose to change `weighted rolling mean` -> `weighted rolling sum` --- doc/computation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/computation.rst b/doc/computation.rst index 0f22a2ed967..6793e667e06 100644 --- a/doc/computation.rst +++ b/doc/computation.rst @@ -185,7 +185,7 @@ windowed rolling, convolution, short-time FFT etc. Because the ``DataArray`` given by ``r.construct('window_dim')`` is a view of the original array, it is memory efficient. -You can also use ``construct`` to compute a weighted rolling mean: +You can also use ``construct`` to compute a weighted rolling sum: .. ipython:: python