|
vstat
|
Functions | |
| template<std::floating_point T, nan_policy Policy = nan_policy::propagate, std::random_access_iterator I, std::random_access_iterator J, typename F1 = std::identity, typename F2 = std::identity> requires concepts::arithmetic_projection<F1, std::iter_value_t<I>> | |
| and concepts::arithmetic_projection< F2, std::iter_value_t< J > > auto | accumulate (I first1, I last1, J first2, F1 &&f1=F1 {}, F2 &&f2=F2 {}) noexcept -> std::conditional_t< Policy==nan_policy::omit, std::pair< bivariate_statistics, std::size_t >, bivariate_statistics > |
|
template<std::floating_point T, nan_policy Policy = nan_policy::propagate, std::random_access_iterator I, std::random_access_iterator J, std::random_access_iterator K, typename F1 = std::identity, typename F2 = std::identity> requires concepts::arithmetic_projection<F1, std::iter_value_t<I>> | |
| and concepts::arithmetic_projection< F2, std::iter_value_t< J > > and std::is_arithmetic_v< std::iter_value_t< K > > auto | accumulate (I first1, I last1, J first2, K first3, F1 &&f1=F1 {}, F2 &&f2=F2 {}) noexcept -> std::conditional_t< Policy==nan_policy::omit, std::pair< bivariate_statistics, std::size_t >, bivariate_statistics > |
Methods for bivariate statistics.
|
inlinenoexcept |
Compute bivariate statistics from two sequences of values. The values can be provided directly or via a projection method.
| T | The scalar value type underlying the eve::wide<T> SIMD type used to compute the stats. |
| Policy | nan_policy::propagate (default): a non-finite value poisons the whole result. nan_policy::omit: positions where either raw input is non-finite are skipped (zero-weighted) instead, and the count of skipped pairs is additionally returned. |
| first1 | The begin iterator for the first sequence |
| last1 | The end iterator for the first sequence |
| first2 | The begin iterator for the second sequence |
| f1 | A projection mapping std::iter_value_t<I> to a scalar value |
| f2 | A projection mapping std::iter_value_t<J> to a scalar value |
nan_policy::propagate: the accumulated bivariate statistics. nan_policy::omit: the accumulated bivariate statistics over finite pairs, and the count of skipped (non-finite) pairs.Example