template<typename Output_, class Iterator_>
class scran_blocks::SingleQuantile< Output_, Iterator_ >
Calculate a single quantile from a container.
- Template Parameters
-
| Output_ | Floating-point type of the output quantile. |
| Iterator_ | Random-access writeable iterator to a container. |
This class should be constructed once, given the number of elements and the desired probability. It can then be used to compute a quantile for containers of size equal to the pre-specified number of elements. The quantile is type 7, consistent with the default in R's quantile function.