Home
last modified time | relevance | path

Searched refs:residual (Results 1 – 25 of 55) sorted by relevance

123

/external/aac/libFDK/include/
DFDK_trigFcts.h146 FIXP_DBL residual; in fixp_sin_cos_residual_inline() local
152 residual = fMult(x, FL2FXCONST_DBL(1.0/M_PI)); in fixp_sin_cos_residual_inline()
153 s = ((LONG)residual) >> shift; in fixp_sin_cos_residual_inline()
155 residual &= ( (1<<shift) - 1 ); in fixp_sin_cos_residual_inline()
156 residual = fMult(residual, FL2FXCONST_DBL(M_PI/4.0)) << 2; in fixp_sin_cos_residual_inline()
157 residual <<= scale; in fixp_sin_cos_residual_inline()
202 return residual; in fixp_sin_cos_residual_inline()
215 FIXP_DBL residual, error0, error1, sine, cosine; in inline_fixp_cos_sin() local
216 residual = fixp_sin_cos_residual_inline(x1, scale, &sine, &cosine); in inline_fixp_cos_sin()
217 error0 = fMultDiv2(sine, residual); in inline_fixp_cos_sin()
[all …]
/external/ceres-solver/examples/
Dmore_garbow_hillstrom.cc79 bool operator()(const T* const x, T* residual) const {
87 residual[0] = T(10.0) * (x2 - x1 * x1);
88 residual[1] = T(1.0) - x1;
102 residual[0] = T(-13.0) + x1 + ((T(5.0) - x2) * x2 - T(2.0)) * x2;
103 residual[1] = T(-29.0) + x1 + ((x2 + T(1.0)) * x2 - T(14.0)) * x2;
117 residual[0] = T(10000.0) * x1 * x2 - T(1.0);
118 residual[1] = exp(-x1) + exp(-x2) - T(1.0001);
131 residual[0] = x1 - T(1000000.0);
132 residual[1] = x2 - T(0.000002);
133 residual[2] = x1 * x2 - T(2.0);
[all …]
Dpowell.cc61 T* residual) const { in operator ()()
63 residual[0] = x1[0] + T(10.0) * x2[0]; in operator ()()
71 T* residual) const { in operator ()()
73 residual[0] = T(sqrt(5.0)) * (x3[0] - x4[0]); in operator ()()
81 T* residual) const { in operator ()()
83 residual[0] = (x2[0] - T(2.0) * x4[0]) * (x2[0] - T(2.0) * x4[0]); in operator ()()
91 T* residual) const { in operator ()()
93 residual[0] = T(sqrt(10.0)) * (x1[0] - x4[0]) * (x1[0] - x4[0]); in operator ()()
Dhelloworld_numeric_diff.cc46 bool operator()(const double* const x, double* residual) const { in operator ()()
47 residual[0] = 10.0 - x[0]; in operator ()()
Dhelloworld.cc50 template <typename T> bool operator()(const T* const x, T* residual) const { in operator ()()
51 residual[0] = T(10.0) - x[0]; in operator ()()
Drobust_curve_fitting.cc129 T* residual) const { in operator ()()
130 residual[0] = T(y_) - exp(m[0] * T(x_) + c[0]); in operator ()()
Dcurve_fitting.cc127 T* residual) const { in operator ()()
128 residual[0] = T(y_) - exp(m[0] * T(x_) + c[0]); in operator ()()
/external/flac/libFLAC/include/private/
Dlpc.h140 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
141 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
145 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
146 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
168 void FLAC__lpc_restore_signal(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 ql…
169 void FLAC__lpc_restore_signal_wide(const FLAC__int32 residual[], unsigned data_len, const FLAC__int…
173 void FLAC__lpc_restore_signal_asm_ia32(const FLAC__int32 residual[], unsigned data_len, const FLAC_…
174 void FLAC__lpc_restore_signal_asm_ia32_mmx(const FLAC__int32 residual[], unsigned data_len, const F…
177 void FLAC__lpc_restore_signal_asm_ppc_altivec_16(const FLAC__int32 residual[], unsigned data_len, c…
178 void FLAC__lpc_restore_signal_asm_ppc_altivec_16_order8(const FLAC__int32 residual[], unsigned data…
Dfixed.h80 …pute_residual(const FLAC__int32 data[], unsigned data_len, unsigned order, FLAC__int32 residual[]);
95 void FLAC__fixed_restore_signal(const FLAC__int32 residual[], unsigned data_len, unsigned order, FL…
/external/flac/libFLAC/
Dfixed.c352 …mpute_residual(const FLAC__int32 data[], unsigned data_len, unsigned order, FLAC__int32 residual[]) in FLAC__fixed_compute_residual() argument
359 FLAC__ASSERT(sizeof(residual[0]) == sizeof(data[0])); in FLAC__fixed_compute_residual()
360 memcpy(residual, data, sizeof(residual[0])*data_len); in FLAC__fixed_compute_residual()
364 residual[i] = data[i] - data[i-1]; in FLAC__fixed_compute_residual()
369 residual[i] = data[i] - (data[i-1] << 1) + data[i-2]; in FLAC__fixed_compute_residual()
371 residual[i] = data[i] - 2*data[i-1] + data[i-2]; in FLAC__fixed_compute_residual()
377 residual[i] = data[i] - (((data[i-1]-data[i-2])<<1) + (data[i-1]-data[i-2])) - data[i-3]; in FLAC__fixed_compute_residual()
379 residual[i] = data[i] - 3*data[i-1] + 3*data[i-2] - data[i-3]; in FLAC__fixed_compute_residual()
385residual[i] = data[i] - ((data[i-1]+data[i-3])<<2) + ((data[i-2]<<2) + (data[i-2]<<1)) + data[i-4]; in FLAC__fixed_compute_residual()
387 residual[i] = data[i] - 4*data[i-1] + 6*data[i-2] - 4*data[i-3] + data[i-4]; in FLAC__fixed_compute_residual()
[all …]
Dlpc.c265 …ta_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]) in FLAC__lpc_compute_residual_from_qlp_coefficients() argument
296 *(residual++) = *(data++) - (sum >> lp_quantization); in FLAC__lpc_compute_residual_from_qlp_coefficients()
339 residual[i] = data[i] - (sum >> lp_quantization);
356 residual[i] = data[i] - (sum >> lp_quantization);
374 residual[i] = data[i] - (sum >> lp_quantization);
389 residual[i] = data[i] - (sum >> lp_quantization);
407 residual[i] = data[i] - (sum >> lp_quantization);
420 residual[i] = data[i] - (sum >> lp_quantization);
434 residual[i] = data[i] - (sum >> lp_quantization);
445 residual[i] = data[i] - (sum >> lp_quantization);
[all …]
Dstream_encoder_framing.c48 static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[],…
400 subframe->residual, in FLAC__subframe_add_fixed()
446 subframe->residual, in FLAC__subframe_add_lpc()
497 FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[], const … in add_residual_partitioned_rice_() argument
508 if(!FLAC__bitwriter_write_rice_signed_block(bw, residual, residual_samples, rice_parameters[0])) in add_residual_partitioned_rice_()
518 if(!FLAC__bitwriter_write_raw_int32(bw, residual[i], raw_bits[0])) in add_residual_partitioned_rice_()
536 if(!FLAC__bitwriter_write_rice_signed_block(bw, residual+k_last, k-k_last, rice_parameters[i])) in add_residual_partitioned_rice_()
545 if(!FLAC__bitwriter_write_raw_int32(bw, residual[j], raw_bits[i])) in add_residual_partitioned_rice_()
/external/aac/libFDK/src/
DFDK_trigFcts.cpp298 FIXP_DBL residual, error, sine, cosine; in fixp_cos() local
300 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_cos()
301 error = fMult(sine, residual); in fixp_cos()
308 FIXP_DBL residual, error, sine, cosine; in fixp_sin() local
310 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_sin()
311 error = fMult(cosine, residual); in fixp_sin()
318 FIXP_DBL residual, error0, error1, sine, cosine; in fixp_cos_sin() local
320 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_cos_sin()
321 error0 = fMult(sine, residual); in fixp_cos_sin()
322 error1 = fMult(cosine, residual); in fixp_cos_sin()
/external/ceres-solver/internal/ceres/
Dautodiff_test.cc517 double residual = 0; in TEST() local
532 functor, parameters, 1, &residual, jacobians))); in TEST()
533 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
543 functor, parameters, 1, &residual, jacobians))); in TEST()
544 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
554 functor, parameters, 1, &residual, jacobians))); in TEST()
555 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
565 functor, parameters, 1, &residual, jacobians))); in TEST()
566 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
576 functor, parameters, 1, &residual, jacobians))); in TEST()
[all …]
Dsystem_test.cc241 T* residual) const { in operator ()()
243 *residual = *x1 + T(10.0) * *x2; in operator ()()
252 T* residual) const { in operator ()()
254 *residual = T(sqrt(5.0)) * (*x3 - *x4); in operator ()()
263 T* residual) const { in operator ()()
265 residual[0] = (x2[0] - T(2.0) * x4[0]) * (x2[0] - T(2.0) * x4[0]); in operator ()()
274 T* residual) const { in operator ()()
276 residual[0] = T(sqrt(10.0)) * (x1[0] - x4[0]) * (x1[0] - x4[0]); in operator ()()
Dgradient_checking_cost_function_test.cc149 double residual; in TEST() local
174 &residual, in TEST()
176 EXPECT_EQ(original_residual, residual); in TEST()
205 double residual; in TEST() local
233 &residual, in TEST()
251 &residual, in TEST()
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/
Dencode.c56 int16_t *residual; in WebRtcIlbcfix_EncodeImpl() local
80 residual = &iLBCenc_inst->lpc_buffer[LPC_LOOKBACK+BLOCKL_MAX-iLBCenc_inst->blockl]; in WebRtcIlbcfix_EncodeImpl()
82 decresidual = residual; /* Already encoded residual is overwritten by the decoded version */ in WebRtcIlbcfix_EncodeImpl()
140 &data[n*SUBL], &residual[n*SUBL], in WebRtcIlbcfix_EncodeImpl()
150 iLBCbits_inst->startIdx = WebRtcIlbcfix_FrameClassify(iLBCenc_inst,residual); in WebRtcIlbcfix_EncodeImpl()
156 max=WebRtcSpl_MaxAbsValueW16(&residual[index], 2*SUBL); in WebRtcIlbcfix_EncodeImpl()
166 en1=WebRtcSpl_DotProductWithScale(&residual[index], &residual[index], in WebRtcIlbcfix_EncodeImpl()
169 en2=WebRtcSpl_DotProductWithScale(&residual[index], &residual[index], in WebRtcIlbcfix_EncodeImpl()
181 WebRtcIlbcfix_StateSearch(iLBCenc_inst, iLBCbits_inst, &residual[start_pos], in WebRtcIlbcfix_EncodeImpl()
203 &residual[start_pos+iLBCenc_inst->state_short_len], in WebRtcIlbcfix_EncodeImpl()
[all …]
Dstate_search.c32 int16_t *residual, /* (i) target residual vector */ in WebRtcIlbcfix_StateSearch() argument
51 max = WebRtcSpl_MaxAbsValueW16(residual, iLBCenc_inst->state_short_len); in WebRtcIlbcfix_StateSearch()
62 WEBRTC_SPL_MEMCPY_W16(residualLong, residual, iLBCenc_inst->state_short_len); in WebRtcIlbcfix_StateSearch()
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/
Doveruse_detector.cc182 const double residual = t_ts_delta - slope_*h[0] - offset_; in UpdateKalman() local
188 if (fabs(residual) < 3 * sqrt(var_noise_)) { in UpdateKalman()
189 UpdateNoiseEstimate(residual, min_frame_period, stable_state); in UpdateKalman()
215 slope_ = slope_ + K[0] * residual; in UpdateKalman()
217 offset_ = offset_ + K[1] * residual; in UpdateKalman()
236 void OveruseDetector::UpdateNoiseEstimate(double residual, in UpdateNoiseEstimate() argument
253 + (1 - beta) * residual; in UpdateNoiseEstimate()
255 + (1 - beta) * (avg_noise_ - residual) * (avg_noise_ - residual); in UpdateNoiseEstimate()
/external/eigen/Eigen/src/IterativeLinearSolvers/
DConjugateGradient.h43 VectorType residual = rhs - mat * x; //initial residual in conjugate_gradient() local
54 RealScalar residualNorm2 = residual.squaredNorm(); in conjugate_gradient()
63 p = precond.solve(residual); //initial search direction in conjugate_gradient()
66 …RealScalar absNew = numext::real(residual.dot(p)); // the square of the absolute value of r scale… in conjugate_gradient()
74 residual -= alpha * tmp; // update residue in conjugate_gradient()
76 residualNorm2 = residual.squaredNorm(); in conjugate_gradient()
80 z = precond.solve(residual); // approximately solve for "A z = residual" in conjugate_gradient()
83 absNew = numext::real(residual.dot(z)); // update the absolute value of r in conjugate_gradient()
/external/compiler-rt/lib/builtins/
Ddivsf3.c136 rep_t residual; in ARM_EABI_FNALIAS() local
138 residual = (aSignificand << 24) - quotient * bSignificand; in ARM_EABI_FNALIAS()
142 residual = (aSignificand << 23) - quotient * bSignificand; in ARM_EABI_FNALIAS()
159 const bool round = (residual << 1) > bSignificand; in ARM_EABI_FNALIAS()
Ddivdf3.c151 rep_t residual; in ARM_EABI_FNALIAS() local
153 residual = (aSignificand << 53) - quotient * bSignificand; in ARM_EABI_FNALIAS()
157 residual = (aSignificand << 52) - quotient * bSignificand; in ARM_EABI_FNALIAS()
174 const bool round = (residual << 1) > bSignificand; in ARM_EABI_FNALIAS()
Ddivtf3.c165 rep_t residual; in __divtf3() local
170 residual = (aSignificand << 113) - qb; in __divtf3()
175 residual = (aSignificand << 112) - qb; in __divtf3()
190 const bool round = (residual << 1) >= bSignificand; in __divtf3()
/external/chromium_org/third_party/webrtc/system_wrappers/source/
Dtimestamp_extrapolator.cc106 double residual = in Update() local
109 if (DelayChangeDetection(residual) && in Update()
127 _w[0] = _w[0] + K[0] * residual; in Update()
128 _w[1] = _w[1] + K[1] * residual; in Update()
/external/ceres-solver/docs/source/
Dtutorial.rst77 bool operator()(const T* const x, T* residual) const {
78 residual[0] = T(10.0) - x[0];
87 of the residual is needed, and with a special type ``T=Jet`` when the
91 Once we have a way of computing the residual function, it is now time
107 // Set up the only cost function (also known as residual). This uses
190 for example when the evaluation of the residual involves a call to a
193 functor which computes the residual value and construct a
200 bool operator()(const double* const x, double* residual) const {
201 residual[0] = 10.0 - x[0];
243 In such cases, it is possible to supply your own residual and jacobian
[all …]

123