Lines Matching +full:- +full:30 +full:mv
1 // SPDX-License-Identifier: GPL-2.0
44 mean_and_variance_weighted_update(&s, 30, true, 2); in mean_and_variance_weighted_test()
50 mean_and_variance_weighted_update(&s, -10, false, 2); in mean_and_variance_weighted_test()
51 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s, 2), -10); in mean_and_variance_weighted_test()
54 mean_and_variance_weighted_update(&s, -20, true, 2); in mean_and_variance_weighted_test()
55 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s, 2), -12); in mean_and_variance_weighted_test()
58 mean_and_variance_weighted_update(&s, -30, true, 2); in mean_and_variance_weighted_test()
59 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s, 2), -16); in mean_and_variance_weighted_test()
80 for (i = -10; i >= -100; i -= 10) { in mean_and_variance_weighted_advanced_test()
85 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mean(s, 8), -11); in mean_and_variance_weighted_advanced_test()
100 struct mean_and_variance mv = {}; in do_mean_and_variance_test() local
104 mean_and_variance_update(&mv, initial_value); in do_mean_and_variance_test()
107 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(mv), initial_value); in do_mean_and_variance_test()
108 KUNIT_EXPECT_EQ(test, mean_and_variance_get_stddev(mv), 0); in do_mean_and_variance_test()
114 mean_and_variance_update(&mv, data[i]); in do_mean_and_variance_test()
117 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(mv), mean[i]); in do_mean_and_variance_test()
118 KUNIT_EXPECT_EQ(test, mean_and_variance_get_stddev(mv), stddev[i]); in do_mean_and_variance_test()
123 KUNIT_EXPECT_EQ(test, mv.n, initial_n + n); in do_mean_and_variance_test()
160 KUNIT_EXPECT_EQ(test, abs(fast_divpow2(-i, d)), div_u64(i, 1LLU << d)); in mean_and_variance_fast_divpow2()
164 KUNIT_EXPECT_EQ_MSG(test, abs(fast_divpow2(-i, d)), in mean_and_variance_fast_divpow2()
165 div_u64(i, 1 << d), "%lld %u", -i, d); in mean_and_variance_fast_divpow2()
189 KUNIT_EXPECT_EQ(test, u128_hi(u128_square(U64_MAX)), U64_MAX - 1); in mean_and_variance_u128_basic_test()