Skip to content

Commit

Permalink
weighted rolling mean -> weighted rolling sum
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
fujiisoup committed May 25, 2018
1 parent b48e096 commit 428b970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/computation.rst
Expand Up @@ -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
Expand Down

0 comments on commit 428b970

Please sign in to comment.