diff options
| author | Julian Weigt <juw@posteo.de> | 2026-02-09 18:30:14 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-09 18:30:14 +0100 |
| commit | 90a164daae4341611301c6eae795a51eeac95b85 (patch) | |
| tree | 09f23d54da3ffae3eb139161ab7e4cc25a507db0 | |
| parent | b54caf5830bc5d67d403dadd4903c5a54ec91eb0 (diff) | |
Remove threshold function.
| -rw-r--r-- | charf.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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; |
