eDSP  0.0.1
A cross-platform DSP library written in C++.
Namespaces | Functions
moment.hpp File Reference
#include <edsp/statistics/mean.hpp>
#include <edsp/meta/iterator.hpp>
#include <numeric>

Go to the source code of this file.

Namespaces

 edsp
 
 edsp::statistics
 

Functions

template<std::size_t N, typename ForwardIt >
constexpr meta::value_type_t< ForwardIt > edsp::statistics::moment (ForwardIt first, ForwardIt last)
 Computes the n-th moment of the range [first, last) More...
 
template<std::size_t N, typename ForwardIt >
constexpr meta::value_type_t< ForwardIt > edsp::statistics::moment (ForwardIt first, ForwardIt last, const meta::value_type_t< ForwardIt > mean)
 Computes the nth moment of the range [first, last) considering the precomputed average. More...