Lines Matching refs:stat
126 static void verify(const T &stat, const S &refstat) { in verify() argument
127 EXPECT_EQ(refstat.getN(), stat.getN()); in verify()
128 EXPECT_EQ(refstat.getMin(), stat.getMin()); in verify()
129 EXPECT_EQ(refstat.getMax(), stat.getMax()); in verify()
130 TEST_EXPECT_NEAR(refstat.getWeight(), stat.getWeight()); in verify()
131 TEST_EXPECT_NEAR(refstat.getMean(), stat.getMean()); in verify()
132 TEST_EXPECT_NEAR(refstat.getVariance(), stat.getVariance()); in verify()
133 TEST_EXPECT_NEAR(refstat.getStdDev(), stat.getStdDev()); in verify()
134 TEST_EXPECT_NEAR(refstat.getPopVariance(), stat.getPopVariance()); in verify()
135 TEST_EXPECT_NEAR(refstat.getPopStdDev(), stat.getPopStdDev()); in verify()
318 static constexpr android::audio_utils::Statistics<double> stat{data}; in TEST() local
320 verify(stat, rstat); in TEST()
333 android::audio_utils::Statistics<double> stat; in TEST() local
335 static_assert(std::is_trivially_copyable<decltype(stat)>::value, in TEST()
342 stat.setAlpha(alpha[i]); in TEST()
343 stat.add(data[i]); in TEST()
346 printf("statistics: %s\n", stat.toString().c_str()); in TEST()
348 verify(stat, rstat); in TEST()
368 Statistics<data_t, data_t, data_t, double, double, innerProduct_scalar<data_t>> stat; in TEST() local
389 stat.add(data[i]); in TEST()
399 static_assert(std::is_trivially_copyable<decltype(stat)>::value, in TEST()
412 const double variance = stat.getPopVariance(); in TEST()
434 printf("statistics_inner: %s\n", stat.toString().c_str()); in TEST()
534 android::audio_utils::Statistics<char> stat(0.9); in TEST_P() local
539 stat.add(param[i]); in TEST_P()
543 printf("statistics for %s: %s\n", param, stat.toString().c_str()); in TEST_P()
546 verify(stat, rstat); in TEST_P()