Searched refs:ComputeVariance (Results 1 – 2 of 2) sorted by relevance
/external/webrtc/rtc_base/ |
D | rolling_accumulator_unittest.cc | 42 EXPECT_DOUBLE_EQ(0.0, accum.ComputeVariance()); in TEST() 56 EXPECT_DOUBLE_EQ(1.25, accum.ComputeVariance()); in TEST() 70 EXPECT_NEAR(9.0, accum.ComputeVariance(), 1.0); in TEST() 108 EXPECT_NEAR(229.166667, accum.ComputeVariance(), 25); in TEST() 135 EXPECT_NEAR(stats.ComputeVariance(), 1. / 12, 1e-3); in TEST() 148 EXPECT_NEAR(stats.ComputeVariance(), 1. / 12, 1e-3); in TEST()
|
D | rolling_accumulator.h | 129 double ComputeVariance() const { return stats_.GetVariance().value_or(0); } in ComputeVariance() function
|