src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// Given result and limit arrays, compare rejection results (similar to SINAD, but out-of-band).
// There are no 'summary_only' frequencies for this scenario.
Given result and limit arrays, compare rejection results (similar to SINAD, but out-of-band).
There are no 'summary_only' frequencies for this scenario.
Given result and limit arrays compare rejection results ( similar to SINAD but out - of - band ) . There are no ' summary_only ' frequencies for this scenario .
void EvaluateRejectionResults(double* rejection_results, const double* rejection_limits,
                              bool summary_only = false) {
  bool use_full_set = (!summary_only) && FrequencySet::UseFullFrequencySet;
  if (!use_full_set) {
    return;
  }
  for (uint32_t freq_idx = 0u; freq_idx < FrequencySet::kNumReferenceFreqs; ++freq_idx) {
    if (freq_idx < FrequencySet::kFirstInBandRefFreqIdx ||
        freq_idx >= FrequencySet::kFirstOutBandRefFreqIdx) {
      EXPECT_GE(rejection_results[freq_idx], rejection_limits[freq_idx])
          << " [" << freq_idx << "]  " << std::scientific << std::setprecision(9)
          << rejection_results[freq_idx];
    }
  }
}
void EvaluateRejectionResults ( double * rejection_results , const double * rejection_limits , bool summary_only = false ) { bool use_full_set = ( ! summary_only ) && FrequencySet :: UseFullFrequencySet ; if ( ! use_full_set ) { return ; } for ( uint32_t freq_idx = 0u ; freq_idx < FrequencySet :: kNumReferenceFreqs ; ++ freq_idx ) { if ( freq_idx < FrequencySet :: kFirstInBandRefFreqIdx || freq_idx >= FrequencySet :: kFirstOutBandRefFreqIdx ) { EXPECT_GE ( rejection_results [ freq_idx ] , rejection_limits [ freq_idx ] ) << " " << freq_idx << " " << std :: scientific << std :: setprecision ( 9 ) << rejection_results [ freq_idx ] ; } } }
Given result and limit arrays, compare rejection results (similar to SINAD, but out-of-band).
Given result and limit arrays compare rejection results ( similar to SINAD but out - of - band ) .