• Home
  • Raw
  • Download

Lines Matching refs:histogram_

20   TestHistogram() : histogram_(5, 10) {}  in TestHistogram()
21 Histogram histogram_; member in webrtc::video_coding::TestHistogram
25 EXPECT_EQ(0ul, histogram_.NumValues()); in TEST_F()
26 histogram_.Add(0); in TEST_F()
27 EXPECT_EQ(1ul, histogram_.NumValues()); in TEST_F()
31 histogram_.Add(0); in TEST_F()
32 histogram_.Add(1); in TEST_F()
33 histogram_.Add(2); in TEST_F()
34 histogram_.Add(3); in TEST_F()
35 histogram_.Add(4); in TEST_F()
36 EXPECT_EQ(5ul, histogram_.NumValues()); in TEST_F()
37 EXPECT_EQ(1ul, histogram_.InverseCdf(0.2f)); in TEST_F()
38 EXPECT_EQ(2ul, histogram_.InverseCdf(0.2000001f)); in TEST_F()
39 EXPECT_EQ(4ul, histogram_.InverseCdf(0.8f)); in TEST_F()
41 histogram_.Add(0); in TEST_F()
42 EXPECT_EQ(6ul, histogram_.NumValues()); in TEST_F()
43 EXPECT_EQ(1ul, histogram_.InverseCdf(0.2f)); in TEST_F()
44 EXPECT_EQ(1ul, histogram_.InverseCdf(0.2000001f)); in TEST_F()
48 histogram_.Add(0); in TEST_F()
49 histogram_.Add(0); in TEST_F()
50 histogram_.Add(0); in TEST_F()
51 histogram_.Add(0); in TEST_F()
52 histogram_.Add(0); in TEST_F()
53 histogram_.Add(1); in TEST_F()
54 histogram_.Add(1); in TEST_F()
55 histogram_.Add(1); in TEST_F()
56 histogram_.Add(1); in TEST_F()
57 histogram_.Add(1); in TEST_F()
58 EXPECT_EQ(10ul, histogram_.NumValues()); in TEST_F()
59 EXPECT_EQ(1ul, histogram_.InverseCdf(0.5f)); in TEST_F()
60 EXPECT_EQ(2ul, histogram_.InverseCdf(0.5000001f)); in TEST_F()
62 histogram_.Add(4); in TEST_F()
63 histogram_.Add(4); in TEST_F()
64 histogram_.Add(4); in TEST_F()
65 histogram_.Add(4); in TEST_F()
66 EXPECT_EQ(10ul, histogram_.NumValues()); in TEST_F()
67 EXPECT_EQ(1ul, histogram_.InverseCdf(0.1f)); in TEST_F()
68 EXPECT_EQ(2ul, histogram_.InverseCdf(0.5f)); in TEST_F()
70 histogram_.Add(20); in TEST_F()
71 EXPECT_EQ(10ul, histogram_.NumValues()); in TEST_F()
72 EXPECT_EQ(2ul, histogram_.InverseCdf(0.5f)); in TEST_F()
73 EXPECT_EQ(5ul, histogram_.InverseCdf(0.5000001f)); in TEST_F()