cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
mean.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_VALUE_FUNCTIONS_MEAN_H
4#define pRC_CORE_VALUE_FUNCTIONS_MEAN_H
5
11
12namespace pRC
13{
14 template<class... Xs, If<IsInvocable<Fold<Add>, Xs...>> = 0>
15 static inline constexpr auto mean(Xs &&...args)
16 {
18 return fold<Add>(forward<Xs>(args)...) /
20 }
21}
22#endif // pRC_CORE_VALUE_FUNCTIONS_MEAN_H
Definition cholesky.hpp:18
static constexpr auto mean(Xs &&...args)
Definition mean.hpp:15
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
RemoveConst< RemoveReference< T > > RemoveConstReference
Definition type_traits.hpp:62