1
0
mirror of synced 2025-01-05 11:21:32 +01:00

15 lines
344 B
C++
Raw Normal View History

2019-08-07 05:06:55 +00:00
#pragma once
#include <vector>
#include <tuple>
/// \brief Accumulate a vector to produce the mean and the first moment of the distribution.
///
/// This computes the mean and the first moment of a vector of double values.
///
std::tuple<double, double> accumulate_vector(
const std::vector<double>& values ///< The vector of values
);