1
0
mirror of synced 2024-12-23 05:00:01 +01:00
2020-08-03 18:16:52 -04:00

13 lines
342 B
C++

#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
);