/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/webrtc/test/testsupport/ |
H A D | perf_test_histogram_writer_unittest.cc | 48 EXPECT_EQ(hist1.name(), "measurement"); in TEST() 50 EXPECT_EQ(hist1.unit().unit(), proto::HERTZ); in TEST() 53 EXPECT_EQ(hist1.sample_values_size(), 1); in TEST() 54 EXPECT_EQ(hist1.sample_values(0), 15e7); in TEST() 58 hist1.diagnostics().diagnostic_map().at("stories"); in TEST() 81 EXPECT_EQ(hist1.name(), "measurement"); in TEST() 85 hist1.diagnostics().diagnostic_map().at("stories"); in TEST() 87 EXPECT_EQ(hist1.sample_values_size(), 2); in TEST() 106 EXPECT_EQ(hist1.running().mean(), 17); in TEST() 121 EXPECT_EQ(hist1.unit().unit(), proto::UNITLESS) in TEST() [all …]
|
H A D | perf_test_unittest.cc | 80 const proto::Histogram& hist1 = histogram_set.histograms(0); in TEST_F() local 83 EXPECT_EQ(hist1.name(), "foobar"); in TEST_F() 87 EXPECT_EQ(hist1.unit().unit(), proto::SIGMA); in TEST_F() 88 EXPECT_EQ(hist1.sample_values_size(), 5); in TEST_F() 89 EXPECT_EQ(hist1.sample_values(0), 7); in TEST_F() 90 EXPECT_EQ(hist1.sample_values(1), 1); in TEST_F() 91 EXPECT_EQ(hist1.sample_values(2), 1); in TEST_F() 92 EXPECT_EQ(hist1.sample_values(3), 2); in TEST_F() 93 EXPECT_EQ(hist1.sample_values(4), 3); in TEST_F() 95 EXPECT_EQ(hist1.diagnostics().diagnostic_map().count("stories"), 1u); in TEST_F() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/webrtc/test/testsupport/ |
H A D | perf_test_histogram_writer_unittest.cc | 48 EXPECT_EQ(hist1.name(), "measurement"); in TEST() 50 EXPECT_EQ(hist1.unit().unit(), proto::HERTZ); in TEST() 53 EXPECT_EQ(hist1.sample_values_size(), 1); in TEST() 54 EXPECT_EQ(hist1.sample_values(0), 15e7); in TEST() 58 hist1.diagnostics().diagnostic_map().at("stories"); in TEST() 81 EXPECT_EQ(hist1.name(), "measurement"); in TEST() 85 hist1.diagnostics().diagnostic_map().at("stories"); in TEST() 87 EXPECT_EQ(hist1.sample_values_size(), 2); in TEST() 106 EXPECT_EQ(hist1.running().mean(), 17); in TEST() 121 EXPECT_EQ(hist1.unit().unit(), proto::UNITLESS) in TEST() [all …]
|
H A D | perf_test_unittest.cc | 80 const proto::Histogram& hist1 = histogram_set.histograms(0); in TEST_F() local 83 EXPECT_EQ(hist1.name(), "foobar"); in TEST_F() 87 EXPECT_EQ(hist1.unit().unit(), proto::SIGMA); in TEST_F() 88 EXPECT_EQ(hist1.sample_values_size(), 5); in TEST_F() 89 EXPECT_EQ(hist1.sample_values(0), 7); in TEST_F() 90 EXPECT_EQ(hist1.sample_values(1), 1); in TEST_F() 91 EXPECT_EQ(hist1.sample_values(2), 1); in TEST_F() 92 EXPECT_EQ(hist1.sample_values(3), 2); in TEST_F() 93 EXPECT_EQ(hist1.sample_values(4), 3); in TEST_F() 95 EXPECT_EQ(hist1.diagnostics().diagnostic_map().count("stories"), 1u); in TEST_F() [all …]
|
/dports/databases/grass7/grass-7.8.6/lib/python/pygrass/raster/testsuite/ |
H A D | test_history.py | 48 hist1 = History(self.name) 49 hist1.read() 54 self.assertEqual(hist, hist1) 56 hist1.creator = "Markus" 60 hist1.title = "No such title" 61 hist1.keyword = "No such description" 62 hist1.src1 = "No such source 1" 63 hist1.src2 = "No such source 2" 64 hist1.write() 77 hist1 = History("no_map") [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/telemetry/util/ |
H A D | color_histogram_unittest.py | 13 hist1 = [] 15 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 0) 17 hist1 = [0, 0, 0] 23 hist1 = [1] 29 hist1 = [2, 4, 1, 8, 0, 0] 31 self.assertEqual(color_histogram.HistogramDistance(hist1, hist2), 0) 34 hist1 = [0, 0, 1, 0, 0] 40 hist1 = [2, 0, 1, 3, 4] 45 hist1 = [0, 1, 3, 1] 113 hist1 = image_util.GetColorHistogram( [all …]
|
H A D | color_histogram.py | 16 def HistogramDistance(hist1, hist2, default_color=None): argument 19 if len(hist1) != len(hist2): 21 'of different sizes, %s != %s' % (len(hist1), len(hist2))) 22 if len(hist1) == 0: 27 n1 = sum_func(hist1) 32 hist1[default_color] = 1 39 remainder = np.multiply(hist1, n2) - np.multiply(hist2, n1) 45 for value1, value2 in zip(hist1, hist2):
|
/dports/net-im/dendrite/dendrite-0.5.1/vendor/github.com/HdrHistogram/hdrhistogram-go/ |
H A D | example_log_writer_test.go | 62 hist1 := hdrhistogram.New(1, 30000000, 3) 63 hist1.SetStartTimeMs(0) 64 hist1.SetEndTimeMs(60000) 66 hist1.RecordValue(sample) 69 hist1.SetStartTimeMs(60001) 70 hist1.SetEndTimeMs(120000) 75 hist1.SetStartTimeMs(120001) 76 hist1.SetEndTimeMs(180000) 80 writer.OutputIntervalHistogram(hist1)
|
/dports/emulators/dolphin-emu/dolphin-3152428/Source/Core/Core/HW/ |
H A D | StreamADPCM.cpp | 16 static s16 ADPDecodeSample(s32 bits, s32 q, s32& hist1, s32& hist2) in ADPDecodeSample() argument 25 hist = (hist1 * 0x3c); in ADPDecodeSample() 28 hist = (hist1 * 0x73) - (hist2 * 0x34); in ADPDecodeSample() 31 hist = (hist1 * 0x62) - (hist2 * 0x37); in ADPDecodeSample() 38 hist2 = hist1; in ADPDecodeSample() 39 hist1 = cur; in ADPDecodeSample()
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bseg/sdet/ |
H A D | sdet_EMD.cxx | 13 double sdet_chi_sq_dist(const sdet_bin hist1[], const sdet_bin hist2[]) in sdet_chi_sq_dist() argument 17 …dist += (hist1[i].weight - hist2[i].weight)*(hist1[i].weight - hist2[i].weight)/(hist1[i].weight +… in sdet_chi_sq_dist() 23 double sdet_bhat_dist(const sdet_bin hist1[], const sdet_bin hist2[]) in sdet_bhat_dist() argument 27 dist += hist1[i].weight*hist2[i].weight; in sdet_bhat_dist()
|
/dports/math/py-pygsl/pygsl-2.3.0/tests/ |
H A D | histogram_test.py | 122 hist1.set_ranges_uniform(1,2) 131 hist1.shift(1) 133 hist1.add(hist2) 134 self.failIf(hist1[1]!=3) 135 hist2.sub(hist1) 137 self.failIf(hist1[1]!=3) 302 hist1.shift(1) 304 hist1.add(hist2) 305 self.failIf(hist1[1,3]!=3) 306 hist2.sub(hist1) [all …]
|
/dports/science/InsightToolkit/ITK-5.0.1/Modules/ThirdParty/VNL/src/vxl/core/vnl/algo/tests/ |
H A D | test_functions.cxx | 98 double hist1[20]; in test_functions() local 99 for (double & i : hist1) in test_functions() 108 std::cout << i << ' ' << hist1[i] << std::endl; in test_functions() 109 double delta = hist1[i] - 10.0; in test_functions() 110 chisq += delta*delta/(hist1[i] + 10.0); in test_functions()
|
/dports/misc/vxl/vxl-3.3.2/core/vnl/algo/tests/ |
H A D | test_functions.cxx | 251 double hist1[20]; in test_functions() local 252 for (double & i : hist1) in test_functions() 261 std::cout << i << ' ' << hist1[i] << std::endl; in test_functions() 262 double delta = hist1[i] - 10.0; in test_functions() 263 chisq += delta * delta / (hist1[i] + 10.0); in test_functions()
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bil/algo/ |
H A D | bil_compass_edge_detector.cxx | 469 hist1.bins[i].weight = 0.0; 470 hist1.bins[i].wsum = 0.0; 473 hist1.bins[i].wsum += wHist[j * NBINS + i].wsum; 488 hist1norm.bins[j].value = hist1.bins[j].wsum / hist1.bins[j].weight; 618 hist1.bins[i].weight = 0.0; in bil_detect_compass_edges() 619 hist1.bins[i].wsum = 0.0; in bil_detect_compass_edges() 622 hist1.bins[i].wsum += wHist[j * NBINS + i].wsum; in bil_detect_compass_edges() 638 hist1norm.bins[j].wsum = hist1.bins[j].wsum; in bil_detect_compass_edges() 641 hist1norm.bins[j].value = hist1.bins[j].wsum / hist1.bins[j].weight; in bil_detect_compass_edges() 720 …dist += (hist1[i].weight - hist2[i].weight)*(hist1[i].weight - hist2[i].weight)/(hist1[i].weight +… in bil_chi_sq_dist() [all …]
|
/dports/games/90secondportraits/90-Second-Portraits-1.01b/ |
H A D | ImageTools.lua | 45 function ImageTools.compareHistograms(hist1, hist2) 46 assert(hist1.steps == hist2.steps) 47 assert(hist1.width == hist2.width) 48 assert(hist1.height == hist2.height) 50 local steps = hist1.steps 56 dist = dist + math.abs(hist1[r][g][b] - hist2[r][g][b])
|
/dports/databases/postgresql96-server/postgresql-9.6.24/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 698 if (!hist1->infinite && !hist2->infinite) in get_position() 719 hist1->val)); in get_position() 726 hist1->val)) in get_position() 737 else if (hist1->infinite && !hist2->infinite) in get_position() 747 else if (!hist1->infinite && hist2->infinite) in get_position() 771 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 773 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 783 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 785 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql96-plpython/postgresql-9.6.24/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 698 if (!hist1->infinite && !hist2->infinite) in get_position() 719 hist1->val)); in get_position() 726 hist1->val)) in get_position() 737 else if (hist1->infinite && !hist2->infinite) in get_position() 747 else if (!hist1->infinite && hist2->infinite) in get_position() 771 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 773 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 783 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 785 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql96-pltcl/postgresql-9.6.24/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 698 if (!hist1->infinite && !hist2->infinite) in get_position() 719 hist1->val)); in get_position() 726 hist1->val)) in get_position() 737 else if (hist1->infinite && !hist2->infinite) in get_position() 747 else if (!hist1->infinite && hist2->infinite) in get_position() 771 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 773 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 783 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 785 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql10-plperl/postgresql-10.19/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 688 if (!hist1->infinite && !hist2->infinite) in get_position() 709 hist1->val)); in get_position() 716 hist1->val)) in get_position() 727 else if (hist1->infinite && !hist2->infinite) in get_position() 737 else if (!hist1->infinite && hist2->infinite) in get_position() 761 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 763 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 773 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 775 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql10-server/postgresql-10.19/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 688 if (!hist1->infinite && !hist2->infinite) in get_position() 709 hist1->val)); in get_position() 716 hist1->val)) in get_position() 727 else if (hist1->infinite && !hist2->infinite) in get_position() 737 else if (!hist1->infinite && hist2->infinite) in get_position() 761 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 763 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 773 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 775 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql11-client/postgresql-11.14/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 688 if (!hist1->infinite && !hist2->infinite) in get_position() 709 hist1->val)); in get_position() 716 hist1->val)) in get_position() 727 else if (hist1->infinite && !hist2->infinite) in get_position() 737 else if (!hist1->infinite && hist2->infinite) in get_position() 761 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 763 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 773 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 775 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql10-pltcl/postgresql-10.19/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 688 if (!hist1->infinite && !hist2->infinite) in get_position() 709 hist1->val)); in get_position() 716 hist1->val)) in get_position() 727 else if (hist1->infinite && !hist2->infinite) in get_position() 737 else if (!hist1->infinite && hist2->infinite) in get_position() 761 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 763 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 773 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 775 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql10-client/postgresql-10.19/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 688 if (!hist1->infinite && !hist2->infinite) in get_position() 709 hist1->val)); in get_position() 716 hist1->val)) in get_position() 727 else if (hist1->infinite && !hist2->infinite) in get_position() 737 else if (!hist1->infinite && hist2->infinite) in get_position() 761 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 763 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 773 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 775 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql10-contrib/postgresql-10.19/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 688 if (!hist1->infinite && !hist2->infinite) in get_position() 709 hist1->val)); in get_position() 716 hist1->val)) in get_position() 727 else if (hist1->infinite && !hist2->infinite) in get_position() 737 else if (!hist1->infinite && hist2->infinite) in get_position() 761 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 763 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 773 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 775 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|
/dports/databases/postgresql10-docs/postgresql-10.19/src/backend/utils/adt/ |
H A D | rangetypes_selfuncs.c | 45 RangeBound *hist1, RangeBound *hist2); 688 if (!hist1->infinite && !hist2->infinite) in get_position() 709 hist1->val)); in get_position() 716 hist1->val)) in get_position() 727 else if (hist1->infinite && !hist2->infinite) in get_position() 737 else if (!hist1->infinite && hist2->infinite) in get_position() 761 get_len_position(double value, double hist1, double hist2) in get_len_position() argument 763 if (!is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() 773 return 1.0 - (hist2 - value) / (hist2 - hist1); in get_len_position() 775 else if (is_infinite(hist1) && !is_infinite(hist2)) in get_len_position() [all …]
|