Home
last modified time | relevance | path

Searched refs:estimator (Results 1 – 25 of 274) sorted by relevance

1234567891011

/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/video/
DFixedFrameRateEstimatorTest.java34 FixedFrameRateEstimator estimator = new FixedFrameRateEstimator(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs() local
38 estimator.onNextFrame(framePresentationTimestampNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
40 assertThat(estimator.isSynced()).isFalse(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
41 assertThat(estimator.getFrameDurationNs()).isEqualTo(C.TIME_UNSET); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
46 estimator.onNextFrame(framePresentationTimestampNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
48 assertThat(estimator.isSynced()).isFalse(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
49 assertThat(estimator.getFrameDurationNs()).isEqualTo(C.TIME_UNSET); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
54 estimator.onNextFrame(framePresentationTimestampNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
56 assertThat(estimator.isSynced()).isTrue(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
57 assertThat(estimator.getFrameDurationNs()).isEqualTo(frameDurationNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/video/
DFixedFrameRateEstimatorTest.java34 FixedFrameRateEstimator estimator = new FixedFrameRateEstimator(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs() local
38 estimator.onNextFrame(framePresentationTimestampNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
40 assertThat(estimator.isSynced()).isFalse(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
41 assertThat(estimator.getFrameDurationNs()).isEqualTo(C.TIME_UNSET); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
46 estimator.onNextFrame(framePresentationTimestampNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
48 assertThat(estimator.isSynced()).isFalse(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
49 assertThat(estimator.getFrameDurationNs()).isEqualTo(C.TIME_UNSET); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
54 estimator.onNextFrame(framePresentationTimestampNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
56 assertThat(estimator.isSynced()).isTrue(); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
57 assertThat(estimator.getFrameDurationNs()).isEqualTo(frameDurationNs); in fixedFrameRate_withSingleOutlier_syncsAndResyncs()
[all …]
/external/webrtc/system_wrappers/source/
Drtp_to_ntp_estimator_unittest.cc26 RtpToNtpEstimator estimator; in TEST() local
27 EXPECT_EQ(estimator.UpdateMeasurements(NtpTime(kOneMsInNtp), 0), in TEST()
32 EXPECT_EQ(estimator.UpdateMeasurements(NtpTime(2 * kOneMsInNtp), in TEST()
38 RtpToNtpEstimator estimator; in TEST() local
39 EXPECT_EQ(estimator.UpdateMeasurements(NtpTime(1), 0xFFFFFFFE), in TEST()
41 EXPECT_EQ(estimator.UpdateMeasurements(NtpTime(1 + 2 * kOneMsInNtp), in TEST()
46 EXPECT_EQ(estimator.UpdateMeasurements(NtpTime(1 + 3 * kOneMsInNtp), in TEST()
52 RtpToNtpEstimator estimator; in TEST() local
53 EXPECT_EQ(estimator.UpdateMeasurements(NtpTime(1), 0xFFFFFFFF), in TEST()
55 EXPECT_EQ(estimator.UpdateMeasurements(NtpTime(1 + kOneMsInNtp), in TEST()
[all …]
/external/cronet/stable/net/nqe/
Dnetwork_quality_estimator_unittest.cc220 TestNetworkQualityEstimator estimator(variation_params); in TEST_F() local
222 estimator.SimulateNetworkChange( in TEST_F()
227 EXPECT_FALSE(estimator.GetRecentRTT(nqe::internal::OBSERVATION_CATEGORY_HTTP, in TEST_F()
230 estimator.GetRecentDownlinkThroughputKbps(base::TimeTicks(), &kbps)); in TEST_F()
234 context_builder->set_network_quality_estimator(&estimator); in TEST_F()
239 context->CreateRequest(estimator.GetEchoURL(), DEFAULT_PRIORITY, in TEST_F()
250 EXPECT_TRUE(estimator.GetRecentRTT(nqe::internal::OBSERVATION_CATEGORY_HTTP, in TEST_F()
252 EXPECT_EQ(http_rtt, estimator.GetHttpRTT().value()); in TEST_F()
254 estimator.GetRecentDownlinkThroughputKbps(base::TimeTicks(), &kbps)); in TEST_F()
255 EXPECT_EQ(kbps, estimator.GetDownstreamThroughputKbps().value()); in TEST_F()
[all …]
Dnetwork_qualities_prefs_manager_unittest.cc83 TestNetworkQualityEstimator estimator(variation_params); in TEST_F() local
89 manager.InitializeOnNetworkThread(&estimator); in TEST_F()
95 estimator.SimulateNetworkChange( in TEST_F()
102 estimator.set_recent_effective_connection_type(EFFECTIVE_CONNECTION_TYPE_2G); in TEST_F()
105 estimator.RunOneRequest(); in TEST_F()
109 estimator.set_recent_effective_connection_type(EFFECTIVE_CONNECTION_TYPE_3G); in TEST_F()
112 estimator.RunOneRequest(); in TEST_F()
128 TestNetworkQualityEstimator estimator(variation_params); in TEST_F() local
134 manager.InitializeOnNetworkThread(&estimator); in TEST_F()
143 estimator.SimulateNetworkChange(network_id.type, network_id.id); in TEST_F()
[all …]
/external/cronet/tot/net/nqe/
Dnetwork_quality_estimator_unittest.cc220 TestNetworkQualityEstimator estimator(variation_params); in TEST_F() local
222 estimator.SimulateNetworkChange( in TEST_F()
227 EXPECT_FALSE(estimator.GetRecentRTT(nqe::internal::OBSERVATION_CATEGORY_HTTP, in TEST_F()
230 estimator.GetRecentDownlinkThroughputKbps(base::TimeTicks(), &kbps)); in TEST_F()
234 context_builder->set_network_quality_estimator(&estimator); in TEST_F()
239 context->CreateRequest(estimator.GetEchoURL(), DEFAULT_PRIORITY, in TEST_F()
250 EXPECT_TRUE(estimator.GetRecentRTT(nqe::internal::OBSERVATION_CATEGORY_HTTP, in TEST_F()
252 EXPECT_EQ(http_rtt, estimator.GetHttpRTT().value()); in TEST_F()
254 estimator.GetRecentDownlinkThroughputKbps(base::TimeTicks(), &kbps)); in TEST_F()
255 EXPECT_EQ(kbps, estimator.GetDownstreamThroughputKbps().value()); in TEST_F()
[all …]
Dnetwork_qualities_prefs_manager_unittest.cc83 TestNetworkQualityEstimator estimator(variation_params); in TEST_F() local
89 manager.InitializeOnNetworkThread(&estimator); in TEST_F()
95 estimator.SimulateNetworkChange( in TEST_F()
102 estimator.set_recent_effective_connection_type(EFFECTIVE_CONNECTION_TYPE_2G); in TEST_F()
105 estimator.RunOneRequest(); in TEST_F()
109 estimator.set_recent_effective_connection_type(EFFECTIVE_CONNECTION_TYPE_3G); in TEST_F()
112 estimator.RunOneRequest(); in TEST_F()
128 TestNetworkQualityEstimator estimator(variation_params); in TEST_F() local
134 manager.InitializeOnNetworkThread(&estimator); in TEST_F()
143 estimator.SimulateNetworkChange(network_id.type, network_id.id); in TEST_F()
[all …]
/external/webrtc/modules/audio_processing/agc2/
Dspeech_level_estimator_unittest.cc60 estimator(std::make_unique<SpeechLevelEstimator>( in TestLevelEstimator()
63 initial_speech_level_dbfs(estimator->level_dbfs()), in TestLevelEstimator()
73 std::unique_ptr<SpeechLevelEstimator> estimator; member
85 *level_estimator.estimator); in TEST()
86 const float estimated_level_dbfs = level_estimator.estimator->level_dbfs(); in TEST()
89 *level_estimator.estimator); in TEST()
90 EXPECT_NEAR(level_estimator.estimator->level_dbfs(), estimated_level_dbfs, in TEST()
101 *level_estimator.estimator); in TEST()
102 EXPECT_FALSE(level_estimator.estimator->IsConfident()); in TEST()
112 *level_estimator.estimator); in TEST()
[all …]
Dnoise_level_estimator_unittest.cc33 NoiseLevelEstimator& estimator, in RunEstimator() argument
43 estimator.Analyze(frame_view); in RunEstimator()
45 return estimator.Analyze(signal.float_frame_view()); in RunEstimator()
56 auto estimator = CreateNoiseFloorEstimator(&data_dumper); in TEST_P() local
61 RunEstimator(gen, *estimator, sample_rate_hz()); in TEST_P()
68 auto estimator = CreateNoiseFloorEstimator(&data_dumper); in TEST_P() local
73 RunEstimator(gen, *estimator, sample_rate_hz()); in TEST_P()
81 auto estimator = CreateNoiseFloorEstimator(&data_dumper); in TEST_P() local
87 RunEstimator(gen, *estimator, sample_rate_hz()); in TEST_P()
/external/openscreen/cast/streaming/
Dbandwidth_estimator_unittest.cc41 BandwidthEstimator* estimator() { return &estimator_; } in estimator() function in openscreen::cast::__anon4084285a0111::BandwidthEstimatorTest
61 EXPECT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
69 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
71 estimator()->OnBurstComplete(i, now); in TEST_F()
72 EXPECT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
86 const Clock::time_point end = now + estimator()->history_window(); in TEST_F()
88 estimator()->OnBurstComplete(i, now); in TEST_F()
89 estimator()->OnRtcpReceived(now + kRoundTripTime, kRoundTripTime); in TEST_F()
90 EXPECT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
115 ASSERT_EQ(0, estimator()->ComputeNetworkBandwidth()); in TEST_F()
[all …]
/external/webrtc/modules/audio_processing/aec3/
Derl_estimator_unittest.cc63 ErlEstimator estimator(0); in TEST_P() local
71 estimator.Update(converged_filters, X2, Y2); in TEST_P()
73 VerifyErl(estimator.Erl(), estimator.ErlTimeDomain(), 10.f); in TEST_P()
79 estimator.Update(converged_filters, X2, Y2); in TEST_P()
81 VerifyErl(estimator.Erl(), estimator.ErlTimeDomain(), 10.f); in TEST_P()
84 estimator.Update(converged_filters, X2, Y2); in TEST_P()
85 VerifyErl(estimator.Erl(), estimator.ErlTimeDomain(), 20.f); in TEST_P()
90 estimator.Update(converged_filters, X2, Y2); in TEST_P()
92 VerifyErl(estimator.Erl(), estimator.ErlTimeDomain(), 1000.f); in TEST_P()
100 estimator.Update(converged_filters, X2, Y2); in TEST_P()
[all …]
Derle_estimator_unittest.cc176 ErleEstimator estimator(0, config, num_capture_channels); in TEST_P() local
187 estimator.Update(*render_delay_buffer->GetRenderBuffer(), in TEST_P()
190 VerifyErle(estimator.Erle(/*onset_compensated=*/true), in TEST_P()
191 std::pow(2.f, estimator.FullbandErleLog2()), config.erle.max_l, in TEST_P()
193 VerifyErleGreaterOrEqual(estimator.Erle(/*onset_compensated=*/false), in TEST_P()
194 estimator.Erle(/*onset_compensated=*/true)); in TEST_P()
195 VerifyErleGreaterOrEqual(estimator.ErleUnbounded(), in TEST_P()
196 estimator.Erle(/*onset_compensated=*/false)); in TEST_P()
204 estimator.Update(*render_delay_buffer->GetRenderBuffer(), in TEST_P()
207 VerifyErle(estimator.Erle(/*onset_compensated=*/true), in TEST_P()
[all …]
/external/tensorflow/tensorflow/python/tpu/
Dtpu_estimator.py18 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import *
20 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _clone_export_output_with_tenso…
21 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _create_global_step
22 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _export_output_to_tensors
23 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _get_scaffold
24 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _Inputs
25 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _ITERATIONS_PER_LOOP_VAR
26 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _TPU_ENQUEUE_OPS
27 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _TPU_ESTIMATOR
28 from tensorflow_estimator.python.estimator.tpu.tpu_estimator import _TPU_TRAIN_OP
/external/webrtc/modules/congestion_controller/goog_cc/
Dtrendline_estimator_unittest.cc47 estimator(&config, nullptr), in TrendlineEstimatorTest()
59 auto initial_state = estimator.State(); in RunTestUntilStateChange()
63 estimator.Update(recv_delta, send_delta, send_times[count], in RunTestUntilStateChange()
65 if (estimator.State() != initial_state) { in RunTestUntilStateChange()
78 TrendlineEstimator estimator; member in webrtc::__anon1cf2965f0111::TrendlineEstimatorTest
92 EXPECT_EQ(estimator.State(), BandwidthUsage::kBwNormal); in TEST_F()
94 EXPECT_EQ(estimator.State(), BandwidthUsage::kBwNormal); in TEST_F()
107 EXPECT_EQ(estimator.State(), BandwidthUsage::kBwNormal); in TEST_F()
109 EXPECT_EQ(estimator.State(), BandwidthUsage::kBwOverusing); in TEST_F()
111 EXPECT_EQ(estimator.State(), BandwidthUsage::kBwOverusing); in TEST_F()
[all …]
/external/tensorflow/tensorflow/python/distribute/
Destimator_training.py199 def train_and_evaluate(estimator, train_spec, eval_spec, executor_cls): argument
212 run_config = estimator.config
219 local_estimator = copy.deepcopy(estimator)
252 local_estimator = copy.deepcopy(estimator)
291 def estimator_train(estimator, train_distributed_fn, hooks): argument
293 assert estimator._config._distribute_coordinator_mode
294 run_config = estimator._config
295 assert estimator._config.cluster_spec
297 estimator._config.cluster_spec)
298 assert estimator._config._train_distribute
[all …]
/external/harfbuzz_ng/src/graph/
Dtest-classdef-graph.cc91 static bool check_coverage_size(graph::class_def_size_estimator_t& estimator, in check_coverage_size() argument
95 unsigned result = estimator.coverage_size(); in check_coverage_size()
104 static bool check_add_class_def_size(graph::class_def_size_estimator_t& estimator, in check_add_class_def_size() argument
108 unsigned result = estimator.add_class_def_size(klass); in check_add_class_def_size()
115 return check_coverage_size(estimator, map, klasses); in check_add_class_def_size()
120 graph::class_def_size_estimator_t estimator (list.iter ()); in check_add_class_def_size() local
122 unsigned result = estimator.add_class_def_size (klass); in check_add_class_def_size()
137 result = estimator.coverage_size (); in check_add_class_def_size()
280 graph::class_def_size_estimator_t estimator(map.iter()); in test_running_class_size_estimates_with_locally_consecutive_glyphs() local
281 assert(check_add_class_def_size(estimator, map, 1, {1})); in test_running_class_size_estimates_with_locally_consecutive_glyphs()
[all …]
/external/tensorflow/tensorflow/python/estimator/
Destimator.py22 from tensorflow_estimator.python.estimator import estimator
26 estimator.__all__ = [s for s in dir(estimator) if not s.startswith('__')]
28 from tensorflow_estimator.python.estimator.estimator import *
/external/webrtc/modules/remote_bitrate_estimator/
Dremote_bitrate_estimator_single_stream.cc52 estimator(options), in Detector()
56 OveruseEstimator estimator; member
112 Detector* estimator = it->second; in IncomingPacket() local
113 estimator->last_packet_time_ms = now_ms; in IncomingPacket()
128 const BandwidthUsage prior_state = estimator->detector.State(); in IncomingPacket()
132 if (estimator->inter_arrival.ComputeDeltas( in IncomingPacket()
136 estimator->estimator.Update(time_delta, timestamp_delta_ms, size_delta, in IncomingPacket()
137 estimator->detector.State(), now_ms); in IncomingPacket()
138 estimator->detector.Detect(estimator->estimator.offset(), in IncomingPacket()
140 estimator->estimator.num_of_deltas(), now_ms); in IncomingPacket()
[all …]
/external/grpc-grpc/test/core/transport/
Dbdp_estimator_test.cc60 void AddSamples(BdpEstimator* estimator, int64_t* samples, size_t n) { in AddSamples() argument
61 estimator->AddIncomingBytes(1234567); in AddSamples()
64 estimator->SchedulePing(); in AddSamples()
65 estimator->StartPing(); in AddSamples()
67 estimator->AddIncomingBytes(samples[i]); in AddSamples()
72 estimator->CompletePing(); in AddSamples()
75 void AddSample(BdpEstimator* estimator, int64_t sample) { in AddSample() argument
76 AddSamples(estimator, &sample, 1); in AddSample()
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.estimator.experimental.pbtxt1 path: "tensorflow.estimator.experimental"
21 …argspec: "args=[\'estimator\', \'should_stop_fn\', \'run_every_secs\', \'run_every_steps\'], varar…
25 …argspec: "args=[\'estimator\', \'last_step\', \'wait_after_file_check_secs\'], varargs=None, keywo…
37 …argspec: "args=[\'estimator\', \'metric_name\', \'threshold\', \'eval_dir\', \'min_steps\', \'run_…
41 …argspec: "args=[\'estimator\', \'metric_name\', \'threshold\', \'eval_dir\', \'min_steps\', \'run_…
45 …argspec: "args=[\'estimator\', \'metric_name\', \'max_steps_without_decrease\', \'eval_dir\', \'mi…
49 …argspec: "args=[\'estimator\', \'metric_name\', \'max_steps_without_increase\', \'eval_dir\', \'mi…
Dtensorflow.estimator.-warm-start-settings.pbtxt1 path: "tensorflow.estimator.WarmStartSettings"
3 is_instance: "<class \'tensorflow_estimator.python.estimator.estimator.WarmStartSettings\'>"
4 is_instance: "<class \'tensorflow_estimator.python.estimator.estimator.WarmStartSettings\'>"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.estimator.-warm-start-settings.pbtxt1 path: "tensorflow.estimator.WarmStartSettings"
3 is_instance: "<class \'tensorflow_estimator.python.estimator.estimator.WarmStartSettings\'>"
4 is_instance: "<class \'tensorflow_estimator.python.estimator.estimator.WarmStartSettings\'>"
Dtensorflow.estimator.experimental.pbtxt1 path: "tensorflow.estimator.experimental"
33 …argspec: "args=[\'estimator\', \'should_stop_fn\', \'run_every_secs\', \'run_every_steps\'], varar…
37 …argspec: "args=[\'estimator\', \'last_step\', \'wait_after_file_check_secs\'], varargs=None, keywo…
41 …argspec: "args=[\'estimator\', \'metric_name\', \'threshold\', \'eval_dir\', \'min_steps\', \'run_…
45 …argspec: "args=[\'estimator\', \'metric_name\', \'threshold\', \'eval_dir\', \'min_steps\', \'run_…
49 …argspec: "args=[\'estimator\', \'metric_name\', \'max_steps_without_decrease\', \'eval_dir\', \'mi…
53 …argspec: "args=[\'estimator\', \'metric_name\', \'max_steps_without_increase\', \'eval_dir\', \'mi…
/external/cronet/tot/testing/perf/confidence/
Dratio_bootstrap_estimator_test.cc19 RatioBootstrapEstimator estimator(1111); in TEST() local
21 estimator.ComputeRatioEstimates({twice_as_fast, equally_fast}, 1000, 0.95, in TEST()
38 RatioBootstrapEstimator estimator(2024); in TEST() local
40 estimator.ComputeRatioEstimates({twice_as_fast, equally_fast}, 1000, 0.95, in TEST()
85 RatioBootstrapEstimator estimator(1234); in TEST() local
87 estimator.ComputeRatioEstimates({data}, 10000, 0.95, in TEST()
/external/cronet/stable/testing/perf/confidence/
Dratio_bootstrap_estimator_test.cc19 RatioBootstrapEstimator estimator(1111); in TEST() local
21 estimator.ComputeRatioEstimates({twice_as_fast, equally_fast}, 1000, 0.95, in TEST()
38 RatioBootstrapEstimator estimator(2024); in TEST() local
40 estimator.ComputeRatioEstimates({twice_as_fast, equally_fast}, 1000, 0.95, in TEST()
85 RatioBootstrapEstimator estimator(1234); in TEST() local
87 estimator.ComputeRatioEstimates({data}, 10000, 0.95, in TEST()

1234567891011