Lines Matching refs:threshold
52 void assert_near_equal(unsigned long nb,double pa, double pb, double threshold) in assert_near_equal() argument
54 if (fabs(pa - pb) > threshold) in assert_near_equal()
57 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold,pa,pb); in assert_near_equal()
63 void assert_near_equal(unsigned long nb,float32_t pa, float32_t pb, float32_t threshold) in assert_near_equal() argument
65 if (fabs(pa - pb) > threshold) in assert_near_equal()
68 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold, pa, pb); in assert_near_equal()
75 void assert_near_equal(unsigned long nb,float16_t pa, float16_t pb, float16_t threshold) in assert_near_equal() argument
77 if (fabs(pa - pb) > threshold) in assert_near_equal()
80 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold, pa, pb); in assert_near_equal()
87 void assert_near_equal(unsigned long nb,q63_t pa, q63_t pb, q63_t threshold) in assert_near_equal() argument
89 if (abs(pa - pb) > threshold) in assert_near_equal()
93 sprintf(details,"diff %ld > %ld (0x%016lX,0x%016lX)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
95 sprintf(details,"diff %lld > %lld (0x%016llX,0x%016llX)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
102 void assert_near_equal(unsigned long nb,q31_t pa, q31_t pb, q31_t threshold) in assert_near_equal() argument
104 if (abs(pa - pb) > threshold) in assert_near_equal()
107 sprintf(details,"diff %d > %d (0x%08X,0x%08X)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
113 void assert_near_equal(unsigned long nb,q15_t pa, q15_t pb, q15_t threshold) in assert_near_equal() argument
115 if (abs(pa - pb) > threshold) in assert_near_equal()
118 sprintf(details,"diff %d > %d (0x%04X,0x%04X)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
124 void assert_near_equal(unsigned long nb,q7_t pa, q7_t pb, q7_t threshold) in assert_near_equal() argument
126 if (abs(pa - pb) > threshold) in assert_near_equal()
129 sprintf(details,"diff %d > %d (0x%02X,0x%02X)",abs(pa - pb) , threshold,pa,pb); in assert_near_equal()
186 void assert_relative_error(unsigned long nb,float64_t &a, float64_t &b, double threshold) in assert_relative_error() argument
196 if (rel > threshold) in assert_relative_error()
200 sprintf(details,"diff (%g,%g), %g > %g",a,b,rel , threshold); in assert_relative_error()
206 void assert_relative_error(unsigned long nb,float32_t &a, float32_t &b, double threshold) in assert_relative_error() argument
216 if (rel > threshold) in assert_relative_error()
220 sprintf(details,"diff (%g,%g), %g > %g",a,b,rel , threshold); in assert_relative_error()
227 void assert_relative_error(unsigned long nb,float16_t &a, float16_t &b, double threshold) in assert_relative_error() argument
237 if (rel > threshold) in assert_relative_error()
241 sprintf(details,"diff (%g,%g), %g > %g",a,b,rel , threshold); in assert_relative_error()
248 …tive_error(unsigned long nb,AnyPattern<float64_t> &pa, AnyPattern<float64_t> &pb, double threshold) in assert_relative_error() argument
268 assert_relative_error(nb,ptrA[i],ptrB[i],threshold); in assert_relative_error()
279 …tive_error(unsigned long nb,AnyPattern<float32_t> &pa, AnyPattern<float32_t> &pb, double threshold) in assert_relative_error() argument
299 assert_relative_error(nb,ptrA[i],ptrB[i],threshold); in assert_relative_error()
311 …tive_error(unsigned long nb,AnyPattern<float16_t> &pa, AnyPattern<float16_t> &pb, double threshold) in assert_relative_error() argument
331 assert_relative_error(nb,ptrA[i],ptrB[i],threshold); in assert_relative_error()
727 …nr_error(unsigned long nb,AnyPattern<float32_t> &pa,AnyPattern<float32_t> &pb, float32_t threshold) in assert_snr_error() argument
746 if (snr < threshold) in assert_snr_error()
749 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
754 void assert_snr_error(unsigned long nb,float32_t a,float32_t b, float32_t threshold) in assert_snr_error() argument
762 if (snr < threshold) in assert_snr_error()
765 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
771 …nr_error(unsigned long nb,AnyPattern<float16_t> &pa,AnyPattern<float16_t> &pb, float32_t threshold) in assert_snr_error() argument
790 if (snr < threshold) in assert_snr_error()
793 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
800 void assert_snr_error(unsigned long nb,float16_t a,float16_t b, float32_t threshold) in assert_snr_error() argument
808 if (snr < threshold) in assert_snr_error()
811 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
817 …nr_error(unsigned long nb,AnyPattern<float64_t> &pa,AnyPattern<float64_t> &pb, float64_t threshold) in assert_snr_error() argument
836 if (snr < threshold) in assert_snr_error()
839 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
844 void assert_snr_error(unsigned long nb,float64_t a,float64_t b, float64_t threshold) in assert_snr_error() argument
852 if (snr < threshold) in assert_snr_error()
855 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
860 …assert_snr_error(unsigned long nb,AnyPattern<q63_t> &pa,AnyPattern<q63_t> &pb, float32_t threshold) in assert_snr_error() argument
880 if (snr < threshold) in assert_snr_error()
883 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
889 void assert_snr_error(unsigned long nb,q63_t a,q63_t b, float32_t threshold) in assert_snr_error() argument
897 if (snr < threshold) in assert_snr_error()
900 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
906 …assert_snr_error(unsigned long nb,AnyPattern<q31_t> &pa,AnyPattern<q31_t> &pb, float32_t threshold) in assert_snr_error() argument
926 if (snr < threshold) in assert_snr_error()
929 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
935 void assert_snr_error(unsigned long nb,q31_t a,q31_t b, float32_t threshold) in assert_snr_error() argument
942 if (snr < threshold) in assert_snr_error()
945 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
951 …assert_snr_error(unsigned long nb,AnyPattern<q15_t> &pa,AnyPattern<q15_t> &pb, float32_t threshold) in assert_snr_error() argument
970 if (snr < threshold) in assert_snr_error()
973 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
979 void assert_snr_error(unsigned long nb,q15_t a,q15_t b, float32_t threshold) in assert_snr_error() argument
987 if (snr < threshold) in assert_snr_error()
990 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
996 …d assert_snr_error(unsigned long nb,AnyPattern<q7_t> &pa,AnyPattern<q7_t> &pb, float32_t threshold) in assert_snr_error() argument
1015 if (snr < threshold) in assert_snr_error()
1018 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()
1024 void assert_snr_error(unsigned long nb,q7_t a,q7_t b, float32_t threshold) in assert_snr_error() argument
1032 if (snr < threshold) in assert_snr_error()
1035 sprintf(details,"SNR %g < %g",snr,threshold); in assert_snr_error()