pub fn rolling_count(
window: (Offset, Length),
subwindow: usize,
) -> IntegerArray<i32>Expand description
Computes rolling counts of elements within sliding windows for positional analysis.
Counts the number of elements present within each sliding window position, providing fundamental cardinality information essential for statistical analysis and data validation. Unlike other rolling functions, operates on position information rather than data values.
§Parameters
window- Tuple containing offset and length defining the data window scopesubwindow- Size of sliding window for element counting
§Returns
Returns an IntegerArray<i32> containing:
- Count of elements in each complete window (always equals subwindow size)
- Zero values for positions with incomplete windows
- Null mask indicating where complete windows exist
§Examples
ⓘ
use simd_kernels::kernels::window::rolling_count;
let result = rolling_count((0, 5), 3); // 5 elements, window size 3