polars_arrow::legacy::kernels::rolling::nulls

Function rolling_mean

Source
pub fn rolling_mean<T>(
    arr: &PrimitiveArray<T>,
    window_size: usize,
    min_periods: usize,
    center: bool,
    weights: Option<&[f64]>,
    _params: Option<RollingFnParams>,
) -> ArrayRef
where T: NativeType + IsFloat + PartialOrd + Add<Output = T> + Sub<Output = T> + NumCast + Div<Output = T>,