From 90a164daae4341611301c6eae795a51eeac95b85 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Mon, 9 Feb 2026 18:30:14 +0100 Subject: Remove threshold function. --- charf.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/charf.c b/charf.c index 6908832..fad2938 100644 --- a/charf.c +++ b/charf.c @@ -340,10 +340,6 @@ void format_result(char* s, index_t index, int k, EXPTYPE p, VALUETYPE r, int fo } } -bool over_threshold_charf(double t, int k){ - return (k==1 && t>=1) || (k==2 && t>=.5) || (k==3 && t>.53) || (k==4 && t>=.5) || (k==5 && t>=.58) || (k==6 && t>=.58) || (k==7 && t>=.69) || (k==8 && t>=.83) || (k==9 && t>=.8699) || (k==10 && t>=.919) || (k==11 && t>=.97) || (k==12 && t>=.97) || (k==13 && t>=.98) || (k==14 && t>=.98) || (k==15 && t>=.9817) || (k==16 && t>=.9817) || (k==17 && t>=.987) || (k==18 && t>=.991) || (k==19 && t>=.994) || (k==20 && t>=1.001) || (k==21 && t>=1.009) || (k==22 && t>=1.009) || (k==23 && t>=1.003) || (k==24 && t>=1.174) ; -} - int compute(index_t index, EXPTYPE exponents[P], VALUETYPE (*records_ratio)[K+1][P], index_t (*records_index)[K+1][P]){ VALUETYPE f[N]; int D = generate_function(f,index); @@ -396,9 +392,7 @@ int compute(index_t index, EXPTYPE exponents[P], VALUETYPE (*records_ratio)[K+1] VALUETYPE r = ratio(intdMfp, intdfp); - if( - //over_threshold_charf(valuetype_to_double(r),k) && - is_greater_possibly(r,(*records_ratio)[k][p])){ + if(is_greater_possibly(r,(*records_ratio)[k][p])){ /*extra check for printing only because in error mode for some reason floats randomly seem to increase by tiny amounts*/ if(is_greater_certainly(r,(*records_ratio)[k][p])){ (*records_index)[k][p] = index; -- cgit v1.2.3