Method: Polars::Expr#rolling_max
- Defined in:
- lib/polars/expr.rb
permalink #rolling_max(window_size, weights: nil, min_periods: nil, center: false) ⇒ 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.
Apply a rolling max (moving max) over the values in this array.
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.
5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 |
# File 'lib/polars/expr.rb', line 5136 def rolling_max( window_size, weights: nil, min_periods: nil, center: false ) _from_rbexpr( _rbexpr.rolling_max( window_size, weights, min_periods, center ) ) end |