Method: Polars::Expr#rolling_std
- Defined in:
- lib/polars/expr.rb
permalink #rolling_std(window_size, weights: nil, min_periods: nil, center: false, ddof: 1) ⇒ Expr
Note:
This functionality is experimental and may change without it being considered a breaking change.
Note:
If you want to compute multiple aggregation statistics over the same dynamic
window, consider using group_by_rolling
this method can cache the window size
computation.
Compute a rolling standard deviation.
A window of length window_size
will traverse the array. The values that fill
this window will (optionally) be multiplied with the weights given by the
weight
vector. The resulting values will be aggregated to their sum.
5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 |
# File 'lib/polars/expr.rb', line 5370 def rolling_std( window_size, weights: nil, min_periods: nil, center: false, ddof: 1 ) _from_rbexpr( _rbexpr.rolling_std( window_size, weights, min_periods, center, ddof ) ) end |