46 const double x = std::accumulate(std::array<
Event_<T>, N>::begin(), std::array<
Event_<T>, N>::end(), 0.0, [](
double sum,
const Event_<T> &e) {
return sum + e.x; }) / N;
47 const double y = std::accumulate(std::array<
Event_<T>, N>::begin(), std::array<
Event_<T>, N>::end(), 0.0, [](
double sum,
const Event_<T> &e) {
return sum + e.y; }) / N;
48 const double t = std::accumulate(std::array<
Event_<T>, N>::begin(), std::array<
Event_<T>, N>::end(), 0.0, [](
double sum,
const Event_<T> &e) {
return sum + e.
t; }) / N;
49 const double p = std::accumulate(std::array<
Event_<T>, N>::begin(), std::array<
Event_<T>, N>::end(), 0.0, [](
double sum,
const Event_<T> &e) {
return sum + e.
p; }) / N;
50 return {x, y, t, p > 0.5};