Home
last modified time | relevance | path

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

/external/adhd/cras/src/tests/
Ddsp_core_unittest.cc26 static float magnitude_at(float *data, size_t len, float f) in magnitude_at() function
92 EXPECT_FLOAT_EQ(1, magnitude_at(data, len, f_low)); in TEST()
94 EXPECT_FLOAT_EQ(1, magnitude_at(data, len, f_low)); in TEST()
95 EXPECT_FLOAT_EQ(1, magnitude_at(data, len, f_high)); in TEST()
100 EXPECT_NEAR(1, magnitude_at(data, len, f_low), 0.01); in TEST()
101 EXPECT_NEAR(0, magnitude_at(data, len, f_high), 0.01); in TEST()
116 EXPECT_NEAR(0, magnitude_at(data, len, f_low), 0.01); in TEST()
117 EXPECT_NEAR(1, magnitude_at(data, len, f_high), 0.01); in TEST()
128 EXPECT_NEAR(1, magnitude_at(data, len, f_low), 0.01); in TEST()
129 EXPECT_NEAR(2, magnitude_at(data, len, f_high), 0.01); in TEST()
[all …]