Home
last modified time | relevance | path

Searched refs:KahanSum (Results 1 – 3 of 3) sorted by relevance

/system/media/audio_utils/include/audio_utils/
DStatistics.h50 struct KahanSum { struct
54 constexpr KahanSum<T>() = default;
56 explicit constexpr KahanSum<T>(const T& value) in KahanSum() argument
61 friend constexpr KahanSum<T> operator+(KahanSum<T> lhs, const T& rhs) {
74 constexpr KahanSum<T>& operator+=(const T& rhs) { // takes T not KahanSum<T>
247 typename S = KahanSum<D>, // compensated mean summation type, if any
726 template <typename D = double, typename S = KahanSum<D>, typename T,
736 template <typename D = double, typename S = KahanSum<D>, typename T,
758 template <typename D = double, typename S = KahanSum<D>, typename T, size_t N>
763 template <typename D = double, typename S = KahanSum<D>, typename T, size_t N>
/system/media/audio_utils/benchmarks/
Dstatistics_benchmark.cpp106 android::audio_utils::KahanSum<float>>>(state, in BM_MeanVariance_float_float_Kahan()
/system/media/audio_utils/tests/
Dstatistics_tests.cpp147 android::audio_utils::sum<double, android::audio_utils::KahanSum<double>>(simple); in TEST()
154 android::audio_utils::KahanSum<double> ks{}; in TEST()
187 kssum = android::audio_utils::sum<double, android::audio_utils::KahanSum<double>>(tricky); in TEST()