template<bool minimum_, typename Output_, typename Value_, typename Index_>
class tatami_stats::ranges::RunningDense< minimum_, Output_, Value_, Index_ >
Running minima/maxima from dense data.
This considers a scenario with a set of equilength "objective" vectors \([v_1, v_2, v_3, ..., v_n]\), but data are only available for "observed" vectors \([p_1, p_2, p_3, ..., p_m]\), where the \(j\)-th element of \(p_i\) is the \(i\)-th element of \(v_j\). The idea is to repeatedly call add()
for ptr
corresponding to observed vectors from 0 to \(m - 1\), which computes the running minimum/maximum for each objective vector at each invocation.
- Template Parameters
-
minimum_ | Whether to compute the minimum. If false, the maximum is computed instead. |
Output_ | Type of the output data. |
Value_ | Type of the input data. |
Index_ | Type of the row/column indices. |