Home
last modified time | relevance | path

Searched refs:sum_ (Results 1 – 25 of 63) sorted by relevance

123

/external/webrtc/rtc_base/numerics/
Dsample_counter.cc24 if (sum_ > 0) { in Add()
25 RTC_DCHECK_LE(sample, std::numeric_limits<int64_t>::max() - sum_); in Add()
27 RTC_DCHECK_GE(sample, std::numeric_limits<int64_t>::min() - sum_); in Add()
29 sum_ += sample; in Add()
37 if (sum_ > 0) { in Add()
38 RTC_DCHECK_LE(other.sum_, std::numeric_limits<int64_t>::max() - sum_); in Add()
40 RTC_DCHECK_GE(other.sum_, std::numeric_limits<int64_t>::min() - sum_); in Add()
42 sum_ += other.sum_; in Add()
54 return rtc::dchecked_cast<int>(sum_ / num_samples_); in Avg()
65 return sum_; in Sum()
[all …]
Dmoving_average.cc29 sum_ -= history_[index]; in AddSample()
30 sum_ += sample; in AddSample()
37 return sum_ / Size(); in GetAverageRoundedDown()
43 return (sum_ + Size() / 2) / Size(); in GetAverageRoundedToClosest()
49 return sum_ / static_cast<double>(Size()); in GetUnroundedAverage()
54 sum_ = 0; in Reset()
/external/webrtc/modules/audio_processing/vad/
Dvad_circular_buffer.cc22 sum_(0) {} in VadCircularBuffer()
29 sum_ = 0; in Reset()
48 m = sum_ / buffer_size_; in Mean()
51 m = sum_ / index_; in Mean()
60 sum_ -= buffer_[index_]; in Insert()
62 sum_ += value; in Insert()
89 sum_ -= buffer_[index]; in Set()
91 sum_ += value; in Set()
/external/webrtc/modules/congestion_controller/goog_cc/
Dbitrate_estimator.cc36 : sum_(0), in BitrateEstimator()
125 sum_ = 0; in UpdateWindow()
132 sum_ = 0; in UpdateWindow()
139 *is_small_sample = sum_ < small_sample_threshold_->bytes(); in UpdateWindow()
140 bitrate_sample = 8.0f * sum_ / static_cast<float>(rate_window_ms); in UpdateWindow()
142 sum_ = 0; in UpdateWindow()
144 sum_ += bytes; in UpdateWindow()
156 return DataSize::Bytes(sum_) / TimeDelta::Millis(current_window_ms_); in PeekRate()
/external/cronet/base/power_monitor/
Dmoving_average.cc28 sum_ -= buffer_[index_]; in AddSample()
30 sum_ += sample; in AddSample()
41 return static_cast<int>(sum_ / static_cast<int64_t>(Size())); in GetAverageRoundedDown()
47 return static_cast<int>((base::ClampedNumeric<int64_t>(sum_) + Size() / 2) / in GetAverageRoundedToClosest()
54 return sum_ / static_cast<double>(Size()); in GetUnroundedAverage()
59 sum_ = 0; in Reset()
/external/webrtc/api/video/
Dvideo_bitrate_allocation.cc22 : sum_(0), is_bw_limited_(false) {} in VideoBitrateAllocation()
29 int64_t new_bitrate_sum_bps = sum_; in SetBitrate()
33 RTC_DCHECK_LE(*layer_bitrate, sum_); in SetBitrate()
41 sum_ = rtc::dchecked_cast<uint32_t>(new_bitrate_sum_bps); in SetBitrate()
139 if (sum_ == 0) in ToString()
150 RTC_DCHECK_LE(spatial_cumulator, sum_); in ToString()
151 if (spatial_cumulator == sum_) in ToString()
155 if (layer_sum == sum_ && si == 0) { in ToString()
180 RTC_DCHECK_EQ(spatial_cumulator, sum_); in ToString()
Dvideo_bitrate_allocation.h70 uint32_t get_sum_bps() const { return sum_; } // Sum of all bitrates. in get_sum_bps()
73 return sum_ / 1000; in get_sum_kbps()
89 uint32_t sum_;
/external/leveldb/util/
Dhistogram.cc175 sum_ = 0; in Clear()
192 sum_ += value; in Add()
200 sum_ += other.sum_; in Merge()
232 return sum_ / num_; in Average()
237 double variance = (sum_squares_ * num_ - sum_ * sum_) / (num_ * num_); in StandardDeviation()
Dhistogram.h36 double sum_; variable
/external/tensorflow/tensorflow/core/util/
Dutil.cc53 sum_(0.0), in MovingAverage()
65 sum_ = 0; in Clear()
72 return static_cast<double>(sum_) / count_; in GetAverage()
86 sum_ -= data_[head_]; in AddValue()
90 sum_ += v; in AddValue()
Dstats_calculator.h45 sum_ += v; in UpdateStat()
63 ValueType sum() const { return sum_; } in sum()
71 : static_cast<HighPrecisionValueType>(sum_) / count_; in avg()
78 : (squared_sum_ - std::pow(sum_, 2.0) / count_) / (count_ - 1); in sample_variance()
116 ValueType sum_ = 0; variable
/external/tensorflow/tensorflow/core/lib/histogram/
Dhistogram.cc79 sum_ = proto.sum(); in DecodeFromProto()
95 sum_ = 0; in Clear()
112 sum_ += value; in Add()
161 return sum_ / num_; in Average()
166 double variance = (sum_squares_ * num_ - sum_ * sum_) / (num_ * num_); in StandardDeviation()
207 proto->set_sum(sum_); in EncodeToProto()
/external/webrtc/modules/audio_processing/transient/
Dmoving_moments.cc20 : length_(length), queue_(), sum_(0.0), sum_of_squares_(0.0) { in MovingMoments()
43 sum_ += in[i] - old_value; in CalculateMoments()
45 first[i] = sum_ / length_; in CalculateMoments()
Dmoving_moments.h46 float sum_; variable
/external/llvm/test/CodeGen/Lanai/
Dmem_alu_combiner.ll23 %sum_.0.lcssa = phi i32 [ 0, %entry ], [ %add.lcssa, %for.cond.cleanup.loopexit ]
24 ret i32 %sum_.0.lcssa
28 %sum_.07 = phi i32 [ %add, %for.body ], [ 0, %for.body.preheader ]
31 %add = add nsw i32 %0, %sum_.07
/external/webrtc/video/
Dstats_counter.cc107 sum += it.second.sum_; in Sum()
129 int64_t diff = it.second.sum_ - it.second.last_sum_; in Diff()
142 sum_ += sample; in Add()
147 sum_ = sample; in Set()
154 last_sum_ = sum_; in Reset()
155 sum_ = 0; in Reset()
162 int64_t sum_ = 0; member
Dquality_threshold.cc28 sum_(0), in QualityThreshold()
45 sum_ += measurement - prev_val; in AddMeasurement()
88 double mean = static_cast<double>(sum_) / max_measurements_; in CalculateVariance()
/external/zucchini/
Dbinary_data_histogram.cc26 sum_ += sample; in Add()
32 mean_ = sum_ / n_; in Prepare()
33 standard_deviation_ = ::sqrt((sum_of_squares_ - sum_ * mean_) / in Prepare()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dscan_ops.cc44 ScanOp(OpKernelConstruction* ctx, bool sum) : XlaOpKernel(ctx), sum_(sum) { in ScanOp()
96 if (sum_) { in Compile()
125 const bool sum_; // True=cumulative sum. False=cumulative product. member in tensorflow::__anon4059c7f10111::ScanOp
/external/perfetto/src/tools/
Didle_alloc.cc112 : sum_(const_cast<volatile uint64_t*>( in SumUp()
118 *sum_ += nonidle[i]; in Touch()
122 volatile uint64_t* sum_; member in __anon29898b010111::SumUp
/external/tensorflow/tensorflow/lite/g3doc/performance/
Dquantization_spec.md87 $$a_j \cdot b_k = \sum_{i=0}^{n} a_{j}^{(i)} b_{k}^{(i)} =
88 \sum_{i=0}^{n} (q_{a}^{(i)} - z_a) (q_{b}^{(i)} - z_b) =
89 \sum_{i=0}^{n} q_{a}^{(i)} q_{b}^{(i)} - \sum_{i=0}^{n} q_{a}^{(i)} z_b -
90 \sum_{i=0}^{n} q_{b}^{(i)} z_a + \sum_{i=0}^{n} z_a z_b$$
94 The \\(\sum_{i=0}^{n} q_{a}^{(i)} q_{b}^{(i)}\\) term is unavoidable since it’s
97 The $$\sum_{i=0}^{n} q_{b}^{(i)} z_a$$ and $$\sum_{i=0}^{n} z_a z_b$$ terms are
101 The \\(\sum_{i=0}^{n} q_{a}^{(i)} z_b\\) term needs to be computed every inference
/external/libaom/aom_dsp/x86/
Dmasked_variance_intrin_ssse3.c41 int height, unsigned int *sse, int *sum_);
46 unsigned int *sse, int *sum_);
51 unsigned int *sse, int *sum_);
433 int height, unsigned int *sse, int *sum_) { in masked_variance() argument
454 *sum_ = _mm_cvtsi128_si32(sum); in masked_variance()
461 unsigned int *sse, int *sum_) { in masked_variance8xh() argument
484 *sum_ = _mm_cvtsi128_si32(sum); in masked_variance8xh()
491 unsigned int *sse, int *sum_) { in masked_variance4xh() argument
515 *sum_ = _mm_cvtsi128_si32(sum); in masked_variance4xh()
535 int *sum_);
[all …]
/external/eigen/unsupported/Eigen/
DPolynomials82 \f$ \forall r_i \f$ root of \f$ p(x) = \sum_{k=0}^d a_k x^k \f$,
83 \f$ |r_i| \le C(p) = \sum_{k=0}^{d} \left | \frac{a_k}{a_d} \right | \f$
92 \f$ \forall r_i \neq 0 \f$ root of \f$ p(x) = \sum_{k=0}^d a_k x^k \f$,
93 \f$ |r_i| \ge c(p) = \left( \sum_{k=0}^{d} \left | \frac{a_k}{a_0} \right | \right)^{-1} \f$
/external/webrtc/modules/audio_coding/neteq/
Dstatistics_calculator.cc102 sum_ += value; in RegisterSample()
107 return counter_ == 0 ? 0 : static_cast<int>(sum_ / counter_); in Metric()
111 sum_ = 0.0; in Reset()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Zeta.pbtxt8 \\(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\\)

123